diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-19 12:13:56 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-19 12:13:56 +0000 |
commit | 68309418cbc8ce94a6297a7014ab1f89ece29fc8 (patch) | |
tree | 7becf7e332038e2cc0184b698f5b1ce45eab7be6 /cpukit/score/src/isr.c | |
parent | 2010-08-19 Gedare Bloom <giddyup44@yahoo.com> (diff) | |
download | rtems-68309418cbc8ce94a6297a7014ab1f89ece29fc8.tar.bz2 |
2010-08-19 Gedare Bloom <giddyup44@yahoo.com>
PR 1680/cpukit
* score/src/isr.c: Correct initialization of _CPU_Interrupt_stack_high
to properly do the alignment. This most likely only would have caused
a propblem on CPUs where the stack grows down and have strict
alignment.
Diffstat (limited to 'cpukit/score/src/isr.c')
-rw-r--r-- | cpukit/score/src/isr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/isr.c b/cpukit/score/src/isr.c index 4925ee9117..00361a5b8e 100644 --- a/cpukit/score/src/isr.c +++ b/cpukit/score/src/isr.c @@ -63,7 +63,7 @@ void _ISR_Handler_initialization( void ) ); _CPU_Interrupt_stack_high = (void *) - ((uintptr_t) _CPU_Interrupt_stack_high & ~CPU_STACK_ALIGNMENT); + ((uintptr_t) _CPU_Interrupt_stack_high & ~(CPU_STACK_ALIGNMENT - 1)); /* Interrupt stack might have to be aligned and/or setup * in a specific way. |