liveBook · Manning

Process stack pointer

As explained in Embedded Software with Rust

The process stack pointer is a processor register that identifies the stack used by process or unprivileged execution contexts.

The process stack pointer (PSP) is an additional processor stack pointer for unprivileged or multitasked execution. It may be set up after a warm reset or when multiple stack pointers are needed. section 4.2.1

PSP use may arise when:

  • A warm reset requires explicit stack initialization, or code needs multiple stack pointers. section 4.2.1
  • An operating system or real-time kernel switches from the Main Stack Pointer to the PSP to enable multitasking. section 4.3.3

How Embedded Software with Rust covers it

How deep it goes
Defines the PSP’s role and names setup scenarios, but stops short of register-level instructions.
Examples
Names warm-reset setup and operating-system or real-time-kernel stack switching as use cases.
What you can do after
Understand when a separate process stack may support unprivileged execution or multitasking.
How it connects
Connects process-stack use with the Main Stack Pointer, unprivileged execution, and multitasking.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Embedded Software with Rust. The section links point to the parts of the book it draws on.