Makes scheduler works at the end of the interruption
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user