mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
prevent overwriting current process ID in case of double-interrupt
this is part of #361, per @xobs
This commit is contained in:
parent
1ff1380916
commit
cbbeaa27ad
1 changed files with 3 additions and 1 deletions
|
|
@ -693,7 +693,9 @@ impl SystemServices {
|
|||
}
|
||||
|
||||
// log_process_update(file!(), line!(), process, old_state);
|
||||
process.previous_thread = process.current_thread;
|
||||
if process.current_thread != arch::process::IRQ_TID {
|
||||
process.previous_thread = process.current_thread;
|
||||
}
|
||||
process.current_thread = arch::process::IRQ_TID;
|
||||
process.mapping.activate()?;
|
||||
process.activate()?;
|
||||
|
|
|
|||
Loading…
Reference in a new issue