forked from Imagelibrary/rtems
2008-08-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* shared/irq/irq_init.c: Reverse previous incorrect changes. Correct warnings and ensure BSP still works.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2008-08-24 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
|
* shared/irq/irq_init.c: Reverse previous incorrect changes. Correct
|
||||||
|
warnings and ensure BSP still works.
|
||||||
|
|
||||||
2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
|
2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
* shared/comm/i386-stub.c, shared/irq/irq_init.c: Fix warnings for
|
* shared/comm/i386-stub.c, shared/irq/irq_init.c: Fix warnings for
|
||||||
|
|||||||
@@ -37,12 +37,52 @@ extern void rtems_irq_prologue_13(void);
|
|||||||
extern void rtems_irq_prologue_14(void);
|
extern void rtems_irq_prologue_14(void);
|
||||||
extern void rtems_irq_prologue_15(void);
|
extern void rtems_irq_prologue_15(void);
|
||||||
/*
|
/*
|
||||||
* default idt vector
|
* default vectors
|
||||||
*/
|
*/
|
||||||
extern void default_raw_idt_handler(void);
|
extern void default_raw_idt_handler(void);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* default raw on/off function
|
||||||
|
*/
|
||||||
|
static void raw_nop_func(const struct __rtems_raw_irq_connect_data__ *unused)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* default raw isOn function
|
||||||
|
*/
|
||||||
|
static int raw_not_connected(
|
||||||
|
const struct __rtems_raw_irq_connect_data__ *unused
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static rtems_raw_irq_connect_data idtHdl[IDT_SIZE];
|
static rtems_raw_irq_connect_data idtHdl[IDT_SIZE];
|
||||||
|
|
||||||
|
/*
|
||||||
|
* default IRQ handler
|
||||||
|
*/
|
||||||
|
static void irq_default_handler(rtems_irq_hdl_param unused)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* default IRQ on/off function
|
||||||
|
*/
|
||||||
|
static void irq_nop_func(const struct __rtems_irq_connect_data__ *unused)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* default irq isOn function
|
||||||
|
*/
|
||||||
|
static int irq_not_connected( const struct __rtems_irq_connect_data__ *unused)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Table used to store rtems managed interrupt handlers.
|
* Table used to store rtems managed interrupt handlers.
|
||||||
* Borrow the table to store raw handler entries at the beginning.
|
* Borrow the table to store raw handler entries at the beginning.
|
||||||
@@ -68,13 +108,20 @@ static rtems_irq_connect_data rtemsIrq[BSP_IRQ_LINES_NUMBER] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static rtems_raw_irq_connect_data defaultRawIrq = {
|
static rtems_raw_irq_connect_data defaultRawIrq = {
|
||||||
/* vectorIdex, hdl , on , off , isOn */
|
0, /* vectorIdex */
|
||||||
0, default_raw_idt_handler ,NULL , NULL, NULL
|
default_raw_idt_handler, /* hdl */
|
||||||
|
raw_nop_func, /* on */
|
||||||
|
raw_nop_func, /* off */
|
||||||
|
raw_not_connected /* isOn */
|
||||||
};
|
};
|
||||||
|
|
||||||
static rtems_irq_connect_data defaultIrq = {
|
static rtems_irq_connect_data defaultIrq = {
|
||||||
/* vectorIdex, hdl , handle, on, off, isOn */
|
0, /* vectorIdex */
|
||||||
0, NULL , 0 , NULL, NULL, NULL
|
irq_default_handler, /* hdl */
|
||||||
|
0, /* handle */
|
||||||
|
irq_nop_func, /* on */
|
||||||
|
irq_nop_func, /* off */
|
||||||
|
irq_not_connected /* isOn */
|
||||||
};
|
};
|
||||||
|
|
||||||
static rtems_irq_prio irqPrioTable[BSP_IRQ_LINES_NUMBER]={
|
static rtems_irq_prio irqPrioTable[BSP_IRQ_LINES_NUMBER]={
|
||||||
|
|||||||
Reference in New Issue
Block a user