cpukit/aarch64: Remove _CPU_ISR_install_vector

This function was never actually used and is dead code.
This commit is contained in:
Kinsey Moore
2022-07-05 13:35:18 -05:00
committed by Joel Sherrill
parent eefaf0687c
commit 22015c0251
2 changed files with 0 additions and 31 deletions

View File

@@ -174,31 +174,6 @@ uint32_t _CPU_ISR_Get_level( void )
return ( level & AARCH64_PSTATE_I ) != 0;
}
void _CPU_ISR_install_vector(
uint32_t vector,
CPU_ISR_handler new_handler,
CPU_ISR_handler *old_handler
)
{
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
/* Redirection table starts at the end of the vector table */
CPU_ISR_handler *table = (CPU_ISR_handler *) (MAX_EXCEPTIONS * 4);
CPU_ISR_handler current_handler = table [vector];
/* The current handler is now the old one */
if (old_handler != NULL) {
*old_handler = current_handler;
}
/* Write only if necessary to avoid writes to a maybe read-only memory */
if (current_handler != new_handler) {
table [vector] = new_handler;
}
#pragma GCC diagnostic pop
}
void _CPU_Initialize( void )
{
/* Do nothing */

View File

@@ -306,12 +306,6 @@ void _CPU_Initialize( void );
typedef void ( *CPU_ISR_handler )( void );
void _CPU_ISR_install_vector(
uint32_t vector,
CPU_ISR_handler new_handler,
CPU_ISR_handler *old_handler
);
/**
* @brief CPU switch context.
*/