mirror of
https://github.com/sgmarz/osblog.git
synced 2024-11-24 02:16:19 +04:00
Added virtio probing to kinit
This commit is contained in:
parent
a29698221d
commit
39cb72ad9f
@ -140,6 +140,8 @@ extern "C" fn kinit() {
|
|||||||
plic::enable(10);
|
plic::enable(10);
|
||||||
plic::set_priority(10, 1);
|
plic::set_priority(10, 1);
|
||||||
println!("UART interrupts have been enabled and are awaiting your command.");
|
println!("UART interrupts have been enabled and are awaiting your command.");
|
||||||
|
println!("Loading VirtIO");
|
||||||
|
virtio::probe();
|
||||||
println!("Getting ready for first process.");
|
println!("Getting ready for first process.");
|
||||||
println!("Issuing the first context-switch timer.");
|
println!("Issuing the first context-switch timer.");
|
||||||
unsafe {
|
unsafe {
|
||||||
@ -190,3 +192,4 @@ pub mod sched;
|
|||||||
pub mod syscall;
|
pub mod syscall;
|
||||||
pub mod trap;
|
pub mod trap;
|
||||||
pub mod uart;
|
pub mod uart;
|
||||||
|
pub mod virtio;
|
||||||
|
Loading…
Reference in New Issue
Block a user