Changeset 100446d4 in rtems for cpukit/score/src/percpu.c


Ignore:
Timestamp:
10/07/11 14:29:19 (11 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.