diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-10-07 14:29:19 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-10-07 14:29:19 +0000 |
commit | 100446d4128d405dbd15edc73b1a17c962d2f023 (patch) | |
tree | 0f0fa2f799507fb1cc85f19c4162136b90230d16 /cpukit/score | |
parent | 2011-10-07 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-100446d4128d405dbd15edc73b1a17c962d2f023.tar.bz2 |
2011-10-07 Daniel Hellstrom <daniel@gaisler.com>
PR 1931/cpukit
* score/src/percpu.c: The stack must be aligned to CPU alignment
requirement.
Diffstat (limited to 'cpukit/score')
-rw-r--r-- | cpukit/score/src/percpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/percpu.c b/cpukit/score/src/percpu.c index 631e662d7e..b48e61c8c3 100644 --- a/cpukit/score/src/percpu.c +++ b/cpukit/score/src/percpu.c @@ -50,7 +50,7 @@ p->interrupt_stack_low = _Workspace_Allocate_or_fatal_error( size ); ptr = (uintptr_t) _Addresses_Add_offset( p->interrupt_stack_low, size ); - ptr &= ~CPU_STACK_ALIGNMENT; + ptr &= ~(CPU_STACK_ALIGNMENT - 1); p->interrupt_stack_high = (void *)ptr; p->state = RTEMS_BSP_SMP_CPU_INITIAL_STATE; RTEMS_COMPILER_MEMORY_BARRIER(); |