RTEMS Logo

RTEMS 4.6.5 On-Line Library


Task Context Management Direction of Stack Growth

PREV UP NEXT Bookshelf RTEMS Porting Guide

6.2.1: Direction of Stack Growth

The CPU_STACK_GROWS_UP macro is set based upon the answer to the following question: Does the stack grow up (toward higher addresses) or down (toward lower addresses)? If the stack grows upward in memory, then this macro should be set to TRUE. Otherwise, it should be set to FALSE to indicate that the stack grows downward toward smaller addresses.

The following illustrates how the CPU_STACK_GROWS_UP macro is set:

#define CPU_STACK_GROWS_UP               TRUE


PREV UP NEXT Bookshelf RTEMS Porting Guide

Copyright © 1988-2004 OAR Corporation