summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-19 12:13:56 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-19 12:13:56 +0000
commit68309418cbc8ce94a6297a7014ab1f89ece29fc8 (patch)
tree7becf7e332038e2cc0184b698f5b1ce45eab7be6
parent2010-08-19 Gedare Bloom <giddyup44@yahoo.com> (diff)
downloadrtems-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.
-rw-r--r--cpukit/ChangeLog8
-rw-r--r--cpukit/score/src/isr.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index a3382ca6aa..2def407921 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
2010-08-18 Chris Johns <chrisj@rtems.org>
PR 1677/filesystem
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.