Skip to content
Snippets Groups Projects
Commit ebbaf7ee authored by Damien George's avatar Damien George
Browse files

stmhal/pendsv: Disable interrupts during a thread switch.

We can actually handle interrupts during a thread switch (because we always
have a valid stack), but only if those interrupts don't access any of the
thread state (because the state may not correspond to the stack pointer).
So to be on the safe side we disable interrupts during the very short
period of the thread state+stack switch.
parent 1a5c8d10
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment