Changeset 22015c0 in rtems
- Timestamp:
- 07/05/22 18:35:18 (21 months ago)
- 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)
- Location:
- cpukit/score/cpu/aarch64
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/score/cpu/aarch64/cpu.c
reefaf068 r22015c0 175 175 } 176 176 177 void _CPU_ISR_install_vector(178 uint32_t vector,179 CPU_ISR_handler new_handler,180 CPU_ISR_handler *old_handler181 )182 {183 #pragma GCC diagnostic push184 #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 pop200 }201 202 177 void _CPU_Initialize( void ) 203 178 { -
cpukit/score/cpu/aarch64/include/rtems/score/cpu.h
reefaf068 r22015c0 306 306 307 307 typedef 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_handler313 );314 308 315 309 /**
Note: See TracChangeset
for help on using the changeset viewer.