diff options
Diffstat (limited to 'bsps/powerpc')
-rw-r--r-- | bsps/powerpc/gen5200/include/tm27.h | 4 | ||||
-rw-r--r-- | bsps/powerpc/gen83xx/include/tm27.h | 6 | ||||
-rw-r--r-- | bsps/powerpc/motorola_powerpc/include/tm27.h | 4 | ||||
-rw-r--r-- | bsps/powerpc/mpc8260ads/include/tm27.h | 2 | ||||
-rw-r--r-- | bsps/powerpc/mvme5500/include/tm27.h | 4 | ||||
-rw-r--r-- | bsps/powerpc/psim/include/tm27.h | 4 | ||||
-rw-r--r-- | bsps/powerpc/qoriq/include/tm27.h | 6 | ||||
-rw-r--r-- | bsps/powerpc/ss555/include/tm27.h | 2 |
8 files changed, 16 insertions, 16 deletions
diff --git a/bsps/powerpc/gen5200/include/tm27.h b/bsps/powerpc/gen5200/include/tm27.h index 77dc566e49..d86e6c1d12 100644 --- a/bsps/powerpc/gen5200/include/tm27.h +++ b/bsps/powerpc/gen5200/include/tm27.h @@ -34,9 +34,9 @@ static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER, (rtems_irq_disable) nullFunc, (rtems_irq_is_enabled) nullFunc}; -static inline void Install_tm27_vector(void (*_handler)(void)) +static inline void Install_tm27_vector( rtems_interrupt_handler handler ) { - clockIrqData.hdl = _handler; + clockIrqData.hdl = handler; if (!BSP_install_rtems_irq_handler (&clockIrqData)) { printk("Error installing clock interrupt handler!\n"); bsp_fatal(MPC5200_FATAL_TM27_IRQ_INSTALL); diff --git a/bsps/powerpc/gen83xx/include/tm27.h b/bsps/powerpc/gen83xx/include/tm27.h index cb0c900066..37adc7df98 100644 --- a/bsps/powerpc/gen83xx/include/tm27.h +++ b/bsps/powerpc/gen83xx/include/tm27.h @@ -42,16 +42,16 @@ #define MUST_WAIT_FOR_INTERRUPT 1 -static void (*tm27_interrupt_handler)(rtems_vector_number); +static rtems_interrupt_handler tm27_interrupt_handler; static int tm27_exception_handler( BSP_Exception_frame *frame, unsigned number) { - (*tm27_interrupt_handler)( 0); + (*tm27_interrupt_handler)( NULL); return 0; } -static void Install_tm27_vector( void (*handler)(rtems_vector_number)) +static inline void Install_tm27_vector( rtems_interrupt_handler handler ) { int rv = 0; diff --git a/bsps/powerpc/motorola_powerpc/include/tm27.h b/bsps/powerpc/motorola_powerpc/include/tm27.h index 15e66f2a81..ffdd55706b 100644 --- a/bsps/powerpc/motorola_powerpc/include/tm27.h +++ b/bsps/powerpc/motorola_powerpc/include/tm27.h @@ -39,9 +39,9 @@ static rtems_irq_connect_data clockIrqData = .isOn = null_irq_is_enabled }; -static void Install_tm27_vector(rtems_isr (*_handler)(rtems_vector_number)) +static inline void Install_tm27_vector( rtems_interrupt_handler handler ) { - clockIrqData.hdl = (rtems_irq_hdl) _handler; + clockIrqData.hdl = handler; if (!BSP_install_rtems_irq_handler (&clockIrqData)) { printk("Error installing clock interrupt handler!\n"); rtems_fatal_error_occurred(1); diff --git a/bsps/powerpc/mpc8260ads/include/tm27.h b/bsps/powerpc/mpc8260ads/include/tm27.h index b1eafc47aa..56abceacd5 100644 --- a/bsps/powerpc/mpc8260ads/include/tm27.h +++ b/bsps/powerpc/mpc8260ads/include/tm27.h @@ -29,7 +29,7 @@ do { \ static rtems_irq_connect_data scIrqData = { \ PPC_IRQ_SCALL, \ - (rtems_irq_hdl) handler, \ + handler, \ NULL, \ NULL, \ NULL \ diff --git a/bsps/powerpc/mvme5500/include/tm27.h b/bsps/powerpc/mvme5500/include/tm27.h index 99686dc85d..ae687e319c 100644 --- a/bsps/powerpc/mvme5500/include/tm27.h +++ b/bsps/powerpc/mvme5500/include/tm27.h @@ -32,9 +32,9 @@ static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER, (rtems_irq_disable)nullFunc, (rtems_irq_is_enabled) nullFunc}; -static inline void Install_tm27_vector(void (*_handler)()) +static inline void Install_tm27_vector( rtems_interrupt_handler handler ) { - clockIrqData.hdl = _handler; + clockIrqData.hdl = handler; if (!BSP_install_rtems_irq_handler (&clockIrqData)) { printk("Error installing clock interrupt handler!\n"); rtems_fatal_error_occurred(1); diff --git a/bsps/powerpc/psim/include/tm27.h b/bsps/powerpc/psim/include/tm27.h index c8781efe65..af472d1621 100644 --- a/bsps/powerpc/psim/include/tm27.h +++ b/bsps/powerpc/psim/include/tm27.h @@ -32,9 +32,9 @@ static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER, (rtems_irq_disable)nullFunc, (rtems_irq_is_enabled) nullFunc}; -static inline void Install_tm27_vector(void (*_handler)()) +static inline void Install_tm27_vector( rtems_interrupt_handler handler ) { - clockIrqData.hdl = _handler; + clockIrqData.hdl = handler; if (!BSP_install_rtems_irq_handler (&clockIrqData)) { printk("Error installing clock interrupt handler!\n"); rtems_fatal_error_occurred(1); diff --git a/bsps/powerpc/qoriq/include/tm27.h b/bsps/powerpc/qoriq/include/tm27.h index 4ac769de90..a790fce0ba 100644 --- a/bsps/powerpc/qoriq/include/tm27.h +++ b/bsps/powerpc/qoriq/include/tm27.h @@ -53,7 +53,7 @@ #define IPI_INDEX_HIGH 2 -static inline void Install_tm27_vector(void (*handler)(rtems_vector_number)) +static inline void Install_tm27_vector( rtems_interrupt_handler handler ) { rtems_status_code sc; rtems_vector_number low = QORIQ_IRQ_IPI_0 + IPI_INDEX_LOW; @@ -63,7 +63,7 @@ static inline void Install_tm27_vector(void (*handler)(rtems_vector_number)) low, "tm17 low", RTEMS_INTERRUPT_UNIQUE, - (rtems_interrupt_handler) handler, + handler, NULL ); assert(sc == RTEMS_SUCCESSFUL); @@ -75,7 +75,7 @@ static inline void Install_tm27_vector(void (*handler)(rtems_vector_number)) high, "tm17 high", RTEMS_INTERRUPT_UNIQUE, - (rtems_interrupt_handler) handler, + handler, NULL ); assert(sc == RTEMS_SUCCESSFUL); diff --git a/bsps/powerpc/ss555/include/tm27.h b/bsps/powerpc/ss555/include/tm27.h index 5106801744..37e5ce0a6c 100644 --- a/bsps/powerpc/ss555/include/tm27.h +++ b/bsps/powerpc/ss555/include/tm27.h @@ -32,7 +32,7 @@ usiu.siel |= (1 << 17); \ usiu.sipend |= (1 << 17); \ \ - tm27IrqData.hdl = (rtems_irq_hdl)handler; \ + tm27IrqData.hdl = handler; \ BSP_install_rtems_irq_handler (&tm27IrqData); \ } |