diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2007-12-11 05:22:57 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2007-12-11 05:22:57 +0000 |
commit | 1e556198829962aa5279504bfe4671bfc919aee0 (patch) | |
tree | f0a1f74cd1ba495df13fc536f21216fa0ca2c94d /c/src/lib/libbsp/powerpc/psim/irq/irq_init.c | |
parent | 2007-12-10 Till Straumann <strauman@slac.stanford.edu> (diff) | |
download | rtems-1e556198829962aa5279504bfe4671bfc919aee0.tar.bz2 |
2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* Makefile.am, irq/irq_init.c: use vector/interrupt
support from libcpu/powerpc/new-exceptions/bspsupport.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/powerpc/psim/irq/irq_init.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/irq/irq_init.c b/c/src/lib/libbsp/powerpc/psim/irq/irq_init.c index 9b8fe7cac3..560d882de4 100644 --- a/c/src/lib/libbsp/powerpc/psim/irq/irq_init.c +++ b/c/src/lib/libbsp/powerpc/psim/irq/irq_init.c @@ -30,10 +30,6 @@ static void nop_func(){} * default isOn function */ static int not_connected() {return 0;} -/* - * default possible isOn function - */ -static int connected() {return 1;} static rtems_irq_connect_data rtemsIrq[BSP_IRQ_NUMBER]; static rtems_irq_global_settings initial_config; @@ -56,7 +52,6 @@ static rtems_irq_prio irqPrioTable[BSP_IRQ_NUMBER]={ */ void BSP_rtems_irq_mng_init(unsigned cpuId) { - rtems_raw_except_connect_data vectorDesc; int i; /* @@ -91,31 +86,6 @@ void BSP_rtems_irq_mng_init(unsigned cpuId) ); } - /* - * 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"); #endif |