Skip to main content

2 docs tagged with "rtos"

View all tags

Embedded Systems

Embedded software runs on hardware that was never meant to run much of anything: a few hundred

Privilege Modes and the Two Stacks

A Cortex-M has two independent switches that most bare-metal firmware never touches, and that an RTOS depends on completely. One decides which stack the processor is using; the other decides whether the code running is allowed to change anything important. They are separate — you can be unprivileged on the main stack or privileged on the process stack — and confusing them is the source of a lot of half-right explanations.