summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h')
-rw-r--r--cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h b/cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h
index 8e66182bba..a9294d02a2 100644
--- a/cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h
+++ b/cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h
@@ -976,12 +976,16 @@ uint32_t _CPU_ISR_Get_level( void );
*/
void _CPU_Initialize(void);
+typedef void ( *CPU_ISR_raw_handler )( void );
+
/**
* @ingroup CPUInterrupt
*
* This routine installs a "raw" interrupt handler directly into the
* processor's vector table.
*
+ * This routine is not used by architecture-independent code and thus optional.
+ *
* @param[in] vector is the vector number
* @param[in] new_handler is the raw ISR handler to install
* @param[in] old_handler is the previously installed ISR Handler
@@ -991,16 +995,21 @@ void _CPU_Initialize(void);
* XXX document implementation including references if appropriate
*/
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
);
+typedef void ( *CPU_ISR_handler )( uint32_t );
+
/**
* @ingroup CPUInterrupt
*
* This routine installs an interrupt vector.
*
+ * This routine is only used by architecture-independent code if
+ * CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE, otherwise it is optional.
+ *
* @param[in] vector is the vector number
* @param[in] new_handler is the RTEMS ISR handler to install
* @param[in] old_handler is the previously installed ISR Handler
@@ -1010,9 +1019,9 @@ void _CPU_ISR_install_raw_handler(
* XXX document implementation including references if appropriate
*/
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
);
/**