2007-12-05 Joel Sherrill <joel.sherrill@oarcorp.com>

* irq/irq_init.c: Spacing.
This commit is contained in:
Joel Sherrill
2007-12-05 22:24:05 +00:00
parent 7302f4c51f
commit 9e602b0ad9
2 changed files with 59 additions and 28 deletions

View File

@@ -1,3 +1,7 @@
2007-12-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* clock/clock.c: Fix typo.
2007-12-04 Till Straumann <strauman@slac.stanford.edu> 2007-12-04 Till Straumann <strauman@slac.stanford.edu>
* irq/irq_init.c: removed unnecessary code (alredy * irq/irq_init.c: removed unnecessary code (alredy

View File

@@ -85,10 +85,37 @@ void BSP_rtems_irq_mng_init(unsigned cpuId)
/* /*
* put something here that will show the failure... * put something here that will show the failure...
*/ */
BSP_panic("Unable to initialize RTEMS interrupt Management!!! System locked\n"); BSP_panic(
"Unable to initialize RTEMS interrupt Management!!! System locked\n"
);
} }
#ifdef TRACE_IRQ_INIT /*
* We must connect the raw irq handler for the two
* expected interrupt sources : decrementer and external interrupts.
*/
vectorDesc.exceptIndex = ASM_DEC_VECTOR;
vectorDesc.hdl.vector = ASM_DEC_VECTOR;
vectorDesc.hdl.raw_hdl = decrementer_exception_vector_prolog_code;
vectorDesc.hdl.raw_hdl_size =
(unsigned) decrementer_exception_vector_prolog_code_size;
vectorDesc.on = nop_func;
vectorDesc.off = nop_func;
vectorDesc.isOn = connected;
if (!ppc_set_exception (&vectorDesc))
{
BSP_panic("Unable to initialize RTEMS decrementer raw exception\n");
}
vectorDesc.exceptIndex = ASM_EXT_VECTOR;
vectorDesc.hdl.vector = ASM_EXT_VECTOR;
vectorDesc.hdl.raw_hdl = external_exception_vector_prolog_code;
vectorDesc.hdl.raw_hdl_size =
(unsigned) external_exception_vector_prolog_code_size;
if (!ppc_set_exception (&vectorDesc)) {
BSP_panic("Unable to initialize RTEMS external raw exception\n");
}
#ifdef TRACE_IRQ_INIT
printk("RTEMS IRQ management is now operationnal\n"); printk("RTEMS IRQ management is now operationnal\n");
#endif #endif
} }