Unlock CONTEXT_SWITCH_LOCK after loading registers but before switch
This commit is contained in:
@@ -156,9 +156,6 @@ pub unsafe fn switch() -> bool {
|
||||
|
||||
(*from_ptr).arch.switch_to(&mut (*to_ptr).arch);
|
||||
|
||||
// Unset global lock after switch
|
||||
arch::CONTEXT_SWITCH_LOCK.store(false, Ordering::SeqCst);
|
||||
|
||||
true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user