Unlock CONTEXT_SWITCH_LOCK after loading registers but before switch

This commit is contained in:
Jeremy Soller
2020-04-21 21:03:17 -06:00
parent c79f308f07
commit 582e3fd8eb
2 changed files with 5 additions and 4 deletions
-3
View File
@@ -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
}
}