Try some filesystems

This commit is contained in:
2026-02-13 15:52:43 +01:00
parent 369ff5fef4
commit a53e11d6dd
9 changed files with 73 additions and 47 deletions

View File

@@ -47,7 +47,7 @@ unsafe extern "C" fn machine_trap_handler(
c if c == EextensionID::Time as usize => match fid {
c if c == TimerFunctionID::SetTimer as usize => {
clear_csr!(mip, 1 << 5);
setup_next_timer_interrupt();
// setup_next_timer_interrupt();
}
_ => {}
},
@@ -104,7 +104,7 @@ unsafe extern "C" fn supervisor_trap_handler(
match syscall {
SysCall::NanoSleep => sleep(Duration::new(a1, a2 as u32)),
SysCall::WriteTemp => {
info!("{}", unsafe {
info!("Print from user space : {}", unsafe {
str::from_raw_parts(a1 as *const u8, a2 as usize)
})
}
@@ -130,6 +130,7 @@ unsafe extern "C" fn supervisor_trap_handler(
in("a0") 0,
in("a6") TimerFunctionID::SetTimer as u64,
in("a7") EextensionID::Time as u64,
clobber_abi("system")
);
}
timer_interrupt();