diff options
Diffstat (limited to 'cpukit/rtems/src/intrcatch.c')
-rw-r--r-- | cpukit/rtems/src/intrcatch.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cpukit/rtems/src/intrcatch.c b/cpukit/rtems/src/intrcatch.c index 0326a187f1..e5c7176fc7 100644 --- a/cpukit/rtems/src/intrcatch.c +++ b/cpukit/rtems/src/intrcatch.c @@ -25,6 +25,30 @@ #if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE) +/** + * This function returns true if the vector is a valid vector number + * for this processor and false otherwise. + */ + +RTEMS_INLINE_ROUTINE bool _ISR_Is_vector_number_valid ( + uint32_t vector +) +{ + return ( vector <= CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER ); +} + +/** + * This function returns true if handler is the entry point of a valid + * use interrupt service routine and false otherwise. + */ + +RTEMS_INLINE_ROUTINE bool _ISR_Is_valid_user_handler ( + void *handler +) +{ + return (handler != NULL); +} + rtems_status_code rtems_interrupt_catch( rtems_isr_entry new_isr_handler, rtems_vector_number vector, |