Embedded Systems
Embedded software runs on hardware that was never meant to run much of anything: a few hundred
Embedded software runs on hardware that was never meant to run much of anything: a few hundred
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.