fix(kernel): fix kill wait-queue cleanup, RegionId tracking, ReleasePages ownership, and SwitchTo scheduler state

This commit is contained in:
2026-10-18 00:31:05 +02:00
parent 8912a944b8
commit b8c5090fe5
6 changed files with 93 additions and 19 deletions

View File

@@ -43,6 +43,10 @@ impl PerCoreScheduler {
self.current = None;
}
pub fn set_current(&mut self, thread: ThreadId) {
self.current = Some(thread);
}
pub fn highest_waiting_priority(&self) -> Option<Priority> {
self.queue.highest_priority()
}