forked from Imagelibrary/rtems
@@ -52,8 +52,8 @@ uint32_t _CPU_ISR_Get_level( void )
|
|||||||
|
|
||||||
void _CPU_ISR_install_raw_handler(
|
void _CPU_ISR_install_raw_handler(
|
||||||
uint32_t vector,
|
uint32_t vector,
|
||||||
proc_ptr new_handler,
|
CPU_ISR_raw_handler new_handler,
|
||||||
proc_ptr *old_handler
|
CPU_ISR_raw_handler *old_handler
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
@@ -64,10 +64,12 @@ void _CPU_ISR_install_raw_handler(
|
|||||||
|
|
||||||
void _CPU_ISR_install_vector(
|
void _CPU_ISR_install_vector(
|
||||||
uint32_t vector,
|
uint32_t vector,
|
||||||
proc_ptr new_handler,
|
CPU_ISR_handler new_handler,
|
||||||
proc_ptr *old_handler
|
CPU_ISR_handler *old_handler
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
CPU_ISR_raw_handler ignored;
|
||||||
|
|
||||||
*old_handler = _ISR_Vector_table[ vector ];
|
*old_handler = _ISR_Vector_table[ vector ];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -76,7 +78,7 @@ void _CPU_ISR_install_vector(
|
|||||||
* handler for this vector number.
|
* handler for this vector number.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
_CPU_ISR_install_raw_handler( vector, new_handler, old_handler );
|
_CPU_ISR_install_raw_handler( vector, _ISR_Handler, &ignored );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We put the actual user ISR address in '_ISR_vector_table'. This will
|
* We put the actual user ISR address in '_ISR_vector_table'. This will
|
||||||
|
|||||||
@@ -976,12 +976,16 @@ uint32_t _CPU_ISR_Get_level( void );
|
|||||||
*/
|
*/
|
||||||
void _CPU_Initialize(void);
|
void _CPU_Initialize(void);
|
||||||
|
|
||||||
|
typedef void ( *CPU_ISR_raw_handler )( void );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup CPUInterrupt
|
* @ingroup CPUInterrupt
|
||||||
*
|
*
|
||||||
* This routine installs a "raw" interrupt handler directly into the
|
* This routine installs a "raw" interrupt handler directly into the
|
||||||
* processor's vector table.
|
* 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] vector is the vector number
|
||||||
* @param[in] new_handler is the raw ISR handler to install
|
* @param[in] new_handler is the raw ISR handler to install
|
||||||
* @param[in] old_handler is the previously installed ISR Handler
|
* @param[in] old_handler is the previously installed ISR Handler
|
||||||
@@ -992,15 +996,20 @@ void _CPU_Initialize(void);
|
|||||||
*/
|
*/
|
||||||
void _CPU_ISR_install_raw_handler(
|
void _CPU_ISR_install_raw_handler(
|
||||||
uint32_t vector,
|
uint32_t vector,
|
||||||
proc_ptr new_handler,
|
CPU_ISR_raw_handler new_handler,
|
||||||
proc_ptr *old_handler
|
CPU_ISR_raw_handler *old_handler
|
||||||
);
|
);
|
||||||
|
|
||||||
|
typedef void ( *CPU_ISR_handler )( uint32_t );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup CPUInterrupt
|
* @ingroup CPUInterrupt
|
||||||
*
|
*
|
||||||
* This routine installs an interrupt vector.
|
* 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] vector is the vector number
|
||||||
* @param[in] new_handler is the RTEMS ISR handler to install
|
* @param[in] new_handler is the RTEMS ISR handler to install
|
||||||
* @param[in] old_handler is the previously installed ISR Handler
|
* @param[in] old_handler is the previously installed ISR Handler
|
||||||
@@ -1011,8 +1020,8 @@ void _CPU_ISR_install_raw_handler(
|
|||||||
*/
|
*/
|
||||||
void _CPU_ISR_install_vector(
|
void _CPU_ISR_install_vector(
|
||||||
uint32_t vector,
|
uint32_t vector,
|
||||||
proc_ptr new_handler,
|
CPU_ISR_handler new_handler,
|
||||||
proc_ptr *old_handler
|
CPU_ISR_handler *old_handler
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user