Changeset 100446d4 in rtems


Ignore:
Timestamp:
10/07/11 14:29:19 (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
591e964e
Parents:
5191d84
Message:

2011-10-07 Daniel Hellstrom <daniel@…>

PR 1931/cpukit

  • score/src/percpu.c: The stack must be aligned to CPU alignment requirement.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r5191d84 r100446d4  
     12011-10-07      Daniel Hellstrom <daniel@gaisler.com>
     2
     3        PR 1931/cpukit
     4        * score/src/percpu.c: The stack must be aligned to CPU alignment
     5        requirement.
     6
    172011-10-07      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
  • cpukit/score/src/percpu.c

    r5191d84 r100446d4  
    5151
    5252      ptr = (uintptr_t) _Addresses_Add_offset( p->interrupt_stack_low, size );
    53       ptr &= ~CPU_STACK_ALIGNMENT;
     53      ptr &= ~(CPU_STACK_ALIGNMENT - 1);
    5454      p->interrupt_stack_high = (void *)ptr;
    5555      p->state = RTEMS_BSP_SMP_CPU_INITIAL_STATE;
Note: See TracChangeset for help on using the changeset viewer.