IRQ-based VirtIOBlk Access. Plz wait for the virtio-drivers crate to be updated.

This commit is contained in:
Yifan Wu 2022-02-07 14:13:30 -08:00
parent 017758bf2b
commit c6db34e2c7
13 changed files with 258 additions and 22 deletions

View file

@ -78,6 +78,9 @@ pub fn trap_handler() -> ! {
check_timer();
suspend_current_and_run_next();
}
Trap::Interrupt(Interrupt::SupervisorExternal) => {
crate::board::irq_handler();
}
_ => {
panic!(
"Unsupported trap {:?}, stval = {:#x}!",