5.4.1. Stacks

The stack model is independent of privileged mode, that is, Thread mode can use the process or main stack and be in user or privileged mode. All four combinations of stack and privilege are possible. For a basic protected thread model, the user threads run in Thread mode using the process stack, and the kernel and the interrupts run privileged using the main stack.


Privilege alone does not prevent corruption of stacks, whether malicious or accidental. A memory protection scheme of one form or another is required to isolate the user code. That is, you must prevent the user code from writing to memory it does not own, including other stacks.

Copyright © 2005, 2006 ARM Limited. All rights reserved.ARM DDI 0337E