Explicitly scope all locks, fixing multi_core hangs. Allow contexts on any CPU
This commit is contained in:
@@ -56,7 +56,9 @@ pub fn exit_this_context(excp: Option<syscall::Exception>) -> ! {
|
||||
EventFlags::EVENT_READ,
|
||||
);
|
||||
}
|
||||
let _ = context::contexts_mut().remove(&ContextRef(context_lock));
|
||||
{
|
||||
let _ = context::contexts_mut().remove(&ContextRef(context_lock));
|
||||
}
|
||||
context::switch();
|
||||
unreachable!();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user