Makes scheduler works at the end of the interruption

This commit is contained in:
2026-02-11 16:39:36 +01:00
parent 6fc08b5dbb
commit 8a5c17482c
5 changed files with 139 additions and 204 deletions

View File

@@ -12,7 +12,7 @@ use crate::{
io::init_log,
process::{create_processus, sleep},
riscv::enable_supervisor_interrupt,
scheduler::scheduler_init,
scheduler::{idle, scheduler_init},
vga::{Color, Vga},
};
@@ -67,7 +67,6 @@ pub extern "C" fn supervisor_mode_entry() {
create_processus(test, "proc1");
create_processus(proc2, "proc2");
loop {
unsafe { wfi() }
}
idle();
}