mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
kernel: irq: take() previous process pair
This prevents us from continuously resuming the same task Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
beea92ddab
commit
cfe7c4a3bc
1 changed files with 1 additions and 1 deletions
|
|
@ -177,7 +177,7 @@ pub extern "C" fn trap_handler(
|
||||||
// we're in an interrupt context, it is safe to access this
|
// we're in an interrupt context, it is safe to access this
|
||||||
// global variable.
|
// global variable.
|
||||||
let (previous_pid, previous_context) = unsafe {
|
let (previous_pid, previous_context) = unsafe {
|
||||||
PREVIOUS_PAIR.expect("got an instruction page fault with no previous PID")
|
PREVIOUS_PAIR.take().expect("got an instruction page fault with no previous PID")
|
||||||
};
|
};
|
||||||
println!(
|
println!(
|
||||||
"ISR: Resuming previous pair of ({}, {})",
|
"ISR: Resuming previous pair of ({}, {})",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue