diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-20 18:56:46 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-20 18:56:46 +1100 |
commit | ebbaf7ee57a7c70067b8d1cc1d148cbdaf14762f (patch) | |
tree | 3decc01bc287bdfd32da021d98debe76cdd633aa /py/stackctrl.c | |
parent | 1a5c8d1053b391ea0ce260b882a1f1026ee7a6e0 (diff) | |
download | micropython-ebbaf7ee57a7c70067b8d1cc1d148cbdaf14762f.tar.gz micropython-ebbaf7ee57a7c70067b8d1cc1d148cbdaf14762f.zip |
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.
Diffstat (limited to 'py/stackctrl.c')
0 files changed, 0 insertions, 0 deletions