summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/sh/cpu.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-11-08 15:31:03 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-11-12 13:25:44 +0100
commit510fbfc314a5eb50ce68bb7c2df2b3056e479e99 (patch)
tree8d16e11a994d905d7665d001240a84fd413f8a21 /cpukit/score/cpu/sh/cpu.c
parentpowerpc: Remove use of proc_ptr (diff)
downloadrtems-510fbfc314a5eb50ce68bb7c2df2b3056e479e99.tar.bz2
sh: Remove use of proc_ptr
Update #3585.
Diffstat (limited to 'cpukit/score/cpu/sh/cpu.c')
-rw-r--r--cpukit/score/cpu/sh/cpu.c43
1 files changed, 10 insertions, 33 deletions
diff --git a/cpukit/score/cpu/sh/cpu.c b/cpukit/score/cpu/sh/cpu.c
index b1e8766ff0..9f8be46b93 100644
--- a/cpukit/score/cpu/sh/cpu.c
+++ b/cpukit/score/cpu/sh/cpu.c
@@ -37,11 +37,7 @@
#include <rtems/score/sh.h>
/* referenced in start.S */
-extern proc_ptr vectab[] ;
-
-proc_ptr vectab[256] ;
-
-extern proc_ptr _Hardware_isr_Table[];
+CPU_ISR_raw_handler vectab[256] ;
#if SH_HAS_FPU
Context_Control_fp _CPU_Null_fp_context;
@@ -98,21 +94,18 @@ uint32_t _CPU_ISR_Get_level( void )
return ( _mask);
}
-/*
- * _CPU_ISR_install_raw_handler
- */
-
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
)
+
{
/*
* This is where we install the interrupt handler into the "raw" interrupt
* table used by the CPU to dispatch interrupt handlers.
*/
- volatile proc_ptr *vbr ;
+ volatile CPU_ISR_raw_handler *vbr ;
#if SH_PARANOID_ISR
uint32_t level ;
@@ -131,30 +124,14 @@ void _CPU_ISR_install_raw_handler(
#endif
}
-
-/*
- * _CPU_ISR_install_vector
- *
- * This kernel routine installs the RTEMS handler for the
- * specified vector.
- *
- * Input parameters:
- * vector - interrupt vector number
- * old_handler - former ISR for this vector number
- * new_handler - replacement ISR for this vector number
- *
- * Output parameters: NONE
- *
- */
-
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
)
{
#if defined(__sh1__) || defined(__sh2__)
- proc_ptr ignored ;
+ CPU_ISR_raw_handler ignored ;
#endif
*old_handler = _ISR_Vector_table[ vector ];