forked from Imagelibrary/rtems
@@ -56,42 +56,14 @@ uint32_t _CPU_ISR_Get_level( void )
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* _CPU_ISR_install_raw_handler
|
|
||||||
*
|
|
||||||
* LM32 Specific Information:
|
|
||||||
*
|
|
||||||
* XXX document implementation including references if appropriate
|
|
||||||
*/
|
|
||||||
|
|
||||||
void _CPU_ISR_install_raw_handler(
|
|
||||||
uint32_t vector,
|
|
||||||
proc_ptr new_handler,
|
|
||||||
proc_ptr *old_handler
|
|
||||||
)
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* This is where we install the interrupt handler into the "raw" interrupt
|
|
||||||
* table used by the CPU to dispatch interrupt handlers.
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
|
|
||||||
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
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
*old_handler = _ISR_Vector_table[ vector ];
|
*old_handler = _ISR_Vector_table[ vector ];
|
||||||
|
|
||||||
/*
|
|
||||||
* If the interrupt vector table is a table of pointer to isr entry
|
|
||||||
* points, then we need to install the appropriate RTEMS interrupt
|
|
||||||
* handler for this vector number.
|
|
||||||
*/
|
|
||||||
|
|
||||||
_CPU_ISR_install_raw_handler( vector, new_handler, old_handler );
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 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
|
||||||
* be used by the _ISR_Handler so the user gets control.
|
* be used by the _ISR_Handler so the user gets control.
|
||||||
|
|||||||
@@ -690,39 +690,23 @@ void _CPU_Initialize(void);
|
|||||||
*/
|
*/
|
||||||
/**@{**/
|
/**@{**/
|
||||||
|
|
||||||
/**
|
typedef void ( *CPU_ISR_raw_handler )( void );
|
||||||
* This routine installs a "raw" interrupt handler directly into the
|
|
||||||
* processor's vector table.
|
RTEMS_INLINE_ROUTINE void _CPU_ISR_install_raw_handler(
|
||||||
*
|
uint32_t vector,
|
||||||
* @param[in] vector is the vector number
|
CPU_ISR_raw_handler new_handler,
|
||||||
* @param[in] new_handler is the raw ISR handler to install
|
CPU_ISR_raw_handler *old_handler
|
||||||
* @param[in] old_handler is the previously installed ISR Handler
|
)
|
||||||
*
|
{
|
||||||
* Port Specific Information:
|
/* TODO */
|
||||||
*
|
}
|
||||||
* XXX document implementation including references if appropriate
|
|
||||||
*/
|
typedef void ( *CPU_ISR_handler )( uint32_t );
|
||||||
void _CPU_ISR_install_raw_handler(
|
|
||||||
uint32_t vector,
|
|
||||||
proc_ptr new_handler,
|
|
||||||
proc_ptr *old_handler
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This routine installs an interrupt vector.
|
|
||||||
*
|
|
||||||
* @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
|
|
||||||
*
|
|
||||||
* Port Specific Information:
|
|
||||||
*
|
|
||||||
* XXX document implementation including references if appropriate
|
|
||||||
*/
|
|
||||||
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