summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src')
-rw-r--r--cpukit/score/src/isr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/score/src/isr.c b/cpukit/score/src/isr.c
index 00361a5b8e..799bb08dbb 100644
--- a/cpukit/score/src/isr.c
+++ b/cpukit/score/src/isr.c
@@ -62,8 +62,10 @@ void _ISR_Handler_initialization( void )
Configuration.interrupt_stack_size
);
+#if (CPU_STACK_ALIGNMENT != 0)
_CPU_Interrupt_stack_high = (void *)
((uintptr_t) _CPU_Interrupt_stack_high & ~(CPU_STACK_ALIGNMENT - 1));
+#endif
/* Interrupt stack might have to be aligned and/or setup
* in a specific way.