Adds syscall for sleep and print and makes process work in user mode

This commit is contained in:
2026-02-12 11:36:04 +01:00
parent 8a5c17482c
commit 369ff5fef4
9 changed files with 210 additions and 75 deletions

View File

@@ -28,14 +28,14 @@ pub static mut PROCESS_TABLE: LazyCell<[Process; PROCESSUS_COUNT]> = LazyCell::n
mepc: core::ptr::null(),
mstatus: 0,
},
entry_point: None,
stack: [0; _],
})
});
pub extern "C" fn idle() {
loop {
// enable_supervisor_interrupt();
// write_string_temp("idle");
// info!("idle");
unsafe {
wfi();
}