[PATCH 18/19] sparc64: Remove use of proc_ptr
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Nov 9 12:49:10 UTC 2018
Update #3585.
---
cpukit/score/cpu/sparc64/cpu.c | 18 ++++++++--------
cpukit/score/cpu/sparc64/include/rtems/score/cpu.h | 25 +++++++---------------
2 files changed, 17 insertions(+), 26 deletions(-)
diff --git a/cpukit/score/cpu/sparc64/cpu.c b/cpukit/score/cpu/sparc64/cpu.c
index f39882b53d..dcf5c8f024 100644
--- a/cpukit/score/cpu/sparc64/cpu.c
+++ b/cpukit/score/cpu/sparc64/cpu.c
@@ -192,9 +192,9 @@ uint32_t _CPU_ISR_Get_level( void )
* address.
*/
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
)
{
uint32_t real_vector;
@@ -251,7 +251,7 @@ void _CPU_ISR_install_raw_handler(
(slot->or_g2_hm_handler_to_g2 & IMM_MASK))) << HM_BITS_SHIFT) |
((slot->sethi_of_handler_to_g3 << HI_BITS_SHIFT) |
(slot->jmp_to_low_of_handler_plus_g3 & IMM_MASK));
- *old_handler = (proc_ptr) u64_handler;
+ *old_handler = (CPU_ISR_raw_handler) u64_handler;
} else
*old_handler = 0;
@@ -307,13 +307,13 @@ void _CPU_ISR_install_raw_handler(
* *old_handler - former ISR for this vector number
*/
void _CPU_ISR_install_vector(
- uint64_t vector,
- proc_ptr new_handler,
- proc_ptr *old_handler
+ uint32_t vector,
+ CPU_ISR_handler new_handler,
+ CPU_ISR_handler *old_handler
)
{
- uint64_t real_vector;
- proc_ptr ignored;
+ uint64_t real_vector;
+ CPU_ISR_raw_handler ignored;
/*
* Get the "real" trap number for this vector ignoring the synchronous
diff --git a/cpukit/score/cpu/sparc64/include/rtems/score/cpu.h b/cpukit/score/cpu/sparc64/include/rtems/score/cpu.h
index c25226a975..84cb5865bd 100644
--- a/cpukit/score/cpu/sparc64/include/rtems/score/cpu.h
+++ b/cpukit/score/cpu/sparc64/include/rtems/score/cpu.h
@@ -839,29 +839,20 @@ void _CPU_Context_Initialize(
void _CPU_Initialize(void);
-/*
- * _CPU_ISR_install_raw_handler
- *
- * This routine installs new_handler to be directly called from the trap
- * table.
- */
+typedef void ( *CPU_ISR_raw_handler )( void );
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(
- uint64_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 );
--
2.16.4
More information about the devel
mailing list