Changeset 22015c0 in rtems


Ignore:
Timestamp:
07/05/22 18:35:18 (21 months ago)
Author:
Kinsey Moore <kinsey.moore@…>
Branches:
master
Children:
2f6ee01
Parents:
eefaf068
git-author:
Kinsey Moore <kinsey.moore@…> (07/05/22 18:35:18)
git-committer:
Joel Sherrill <joel@…> (07/05/22 20:35:56)
Message:

cpukit/aarch64: Remove _CPU_ISR_install_vector

This function was never actually used and is dead code.

Location:
cpukit/score/cpu/aarch64
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/aarch64/cpu.c

    reefaf068 r22015c0  
    175175}
    176176
    177 void _CPU_ISR_install_vector(
    178   uint32_t         vector,
    179   CPU_ISR_handler  new_handler,
    180   CPU_ISR_handler *old_handler
    181 )
    182 {
    183 #pragma GCC diagnostic push
    184 #pragma GCC diagnostic ignored "-Warray-bounds"
    185   /* Redirection table starts at the end of the vector table */
    186   CPU_ISR_handler *table = (CPU_ISR_handler *) (MAX_EXCEPTIONS * 4);
    187 
    188   CPU_ISR_handler current_handler = table [vector];
    189 
    190   /* The current handler is now the old one */
    191   if (old_handler != NULL) {
    192     *old_handler = current_handler;
    193   }
    194 
    195   /* Write only if necessary to avoid writes to a maybe read-only memory */
    196   if (current_handler != new_handler) {
    197     table [vector] = new_handler;
    198   }
    199 #pragma GCC diagnostic pop
    200 }
    201 
    202177void _CPU_Initialize( void )
    203178{
  • cpukit/score/cpu/aarch64/include/rtems/score/cpu.h

    reefaf068 r22015c0  
    306306
    307307typedef void ( *CPU_ISR_handler )( void );
    308 
    309 void _CPU_ISR_install_vector(
    310   uint32_t         vector,
    311   CPU_ISR_handler  new_handler,
    312   CPU_ISR_handler *old_handler
    313 );
    314308
    315309/**
Note: See TracChangeset for help on using the changeset viewer.