From 510fbfc314a5eb50ce68bb7c2df2b3056e479e99 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 8 Nov 2018 15:31:03 +0100 Subject: sh: Remove use of proc_ptr Update #3585. --- cpukit/score/cpu/sh/include/rtems/score/cpu.h | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) (limited to 'cpukit/score/cpu/sh/include/rtems/score') diff --git a/cpukit/score/cpu/sh/include/rtems/score/cpu.h b/cpukit/score/cpu/sh/include/rtems/score/cpu.h index 61d8e56448..0d633b0c68 100644 --- a/cpukit/score/cpu/sh/include/rtems/score/cpu.h +++ b/cpukit/score/cpu/sh/include/rtems/score/cpu.h @@ -546,29 +546,22 @@ void _CPU_Context_Initialize( */ void _CPU_Initialize(void); -/* - * _CPU_ISR_install_raw_handler - * - * This routine installs a "raw" interrupt handler directly into the - * processor's vector table. - */ +typedef void ( *CPU_ISR_raw_handler )( void ); + +extern CPU_ISR_raw_handler _Hardware_isr_Table[]; void _CPU_ISR_install_raw_handler( - uint32_t vector, - proc_ptr new_handler, - proc_ptr *old_handler + uint32_t vector, + CPU_ISR_raw_handler new_handler, + CPU_ISR_raw_handler *old_handler ); -/* - * _CPU_ISR_install_vector - * - * This routine installs an interrupt vector. - */ +typedef void ( *CPU_ISR_handler )( uint32_t ); void _CPU_ISR_install_vector( - uint32_t vector, - proc_ptr new_handler, - proc_ptr *old_handler + uint32_t vector, + CPU_ISR_handler new_handler, + CPU_ISR_handler *old_handler ); void *_CPU_Thread_Idle_body( uintptr_t ignored ); -- cgit v1.2.3