CONTROL register (Cortex-M)
A core register of just a few bits that decides whether thread mode runs privileged and which stack pointer it uses.
Bit 0, nPRIV, makes thread mode unprivileged when set. Bit 1, SPSEL, selects the process stack PSP instead of the main stack MSP. On cores with an FPU, bit 2, FPCA, flags that there is floating-point context to save on the next exception. The register is accessed with MRS and MSR, and a write should be followed by an ISB so that subsequent instructions are guaranteed to see the change.
Privilege only flows one way. Privileged code can drop its privileges, but unprivileged code trying to set nPRIV back is silently ignored. The way back is an SVC exception, since handler mode is always privileged. That one-way door is the entire basis for an RTOS running tasks with restricted rights.