summaryrefslogtreecommitdiff
path: root/cpukit/score/cpu/arm/armv7m-exception-handler-set.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/cpu/arm/armv7m-exception-handler-set.c')
-rw-r--r--cpukit/score/cpu/arm/armv7m-exception-handler-set.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/cpukit/score/cpu/arm/armv7m-exception-handler-set.c b/cpukit/score/cpu/arm/armv7m-exception-handler-set.c
index 94c9dc5360..9dd81a5df7 100644
--- a/cpukit/score/cpu/arm/armv7m-exception-handler-set.c
+++ b/cpukit/score/cpu/arm/armv7m-exception-handler-set.c
@@ -38,25 +38,22 @@
#include "config.h"
#endif
-#include <rtems/score/armv7m.h>
#include <rtems/rtems/cache.h>
+#include <rtems/score/armv7m.h>
#ifdef ARM_MULTILIB_ARCH_V7M
-void _ARMV7M_Set_exception_handler(
- int index,
- ARMV7M_Exception_handler handler
-)
+void _ARMV7M_Set_exception_handler(int index, ARMV7M_Exception_handler handler)
{
- if ( _ARMV7M_SCB->vtor [index] != handler ) {
- _ARMV7M_SCB->vtor [index] = handler;
+ if ( _ARMV7M_SCB->vtor[index] != handler ) {
+ _ARMV7M_SCB->vtor[index] = handler;
rtems_cache_flush_multiple_data_lines(
- &_ARMV7M_SCB->vtor [index],
- sizeof(_ARMV7M_SCB->vtor [index])
+ &_ARMV7M_SCB->vtor[index],
+ sizeof(_ARMV7M_SCB->vtor[index])
);
rtems_cache_invalidate_multiple_instruction_lines(
- &_ARMV7M_SCB->vtor [index],
- sizeof(_ARMV7M_SCB->vtor [index])
+ &_ARMV7M_SCB->vtor[index],
+ sizeof(_ARMV7M_SCB->vtor[index])
);
}
}