From 39cb72ad9ff11c30808347fbe0603becf7e5e081 Mon Sep 17 00:00:00 2001 From: Stephen Marz Date: Tue, 10 Mar 2020 17:17:12 -0400 Subject: [PATCH] Added virtio probing to kinit --- risc_v/ch9/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/risc_v/ch9/src/lib.rs b/risc_v/ch9/src/lib.rs index 86ddc25..da55818 100755 --- a/risc_v/ch9/src/lib.rs +++ b/risc_v/ch9/src/lib.rs @@ -140,6 +140,8 @@ extern "C" fn kinit() { plic::enable(10); plic::set_priority(10, 1); println!("UART interrupts have been enabled and are awaiting your command."); + println!("Loading VirtIO"); + virtio::probe(); println!("Getting ready for first process."); println!("Issuing the first context-switch timer."); unsafe { @@ -190,3 +192,4 @@ pub mod sched; pub mod syscall; pub mod trap; pub mod uart; +pub mod virtio;