RTEMS Logo

RTEMS 4.9.5 On-Line Library


Task Context Management Stack Alignment Requirements

PREV UP NEXT Bookshelf RTEMS Porting Guide

6.2.3: Stack Alignment Requirements

The CPU_STACK_ALIGNMENT macro is set to indicate the byte alignment requirement for the stack. This alignment requirement may be stricter than that for the data types alignment specified by CPU_ALIGNMENT. If the CPU_ALIGNMENT is strict enough for the stack, then this should be set to 0.

The following illustrates how the CPU_STACK_ALIGNMENT macro should be set when there are no special requirements:

#define CPU_STACK_ALIGNMENT        0

NOTE: This must be a power of 2 either 0 or greater than CPU_ALIGNMENT. [XXX is this true?]


PREV UP NEXT Bookshelf RTEMS Porting Guide

Copyright © 1988-2008 OAR Corporation