Explicitly scope all locks, fixing multi_core hangs. Allow contexts on any CPU

This commit is contained in:
Jeremy Soller
2025-09-13 10:10:07 -06:00
parent da6f7adb42
commit 8a2aa411e2
6 changed files with 300 additions and 263 deletions
+3 -1
View File
@@ -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!();
}