feat(adapter): init+storage packed into kernel image; drop adapter FAT16 reader + virtio-blk
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
use crate::hw::uart::Uart;
|
||||
use crate::hw::virtio_blk::VirtioBlk;
|
||||
use crate::{KERNEL, board, mmu, platform, trap};
|
||||
|
||||
unsafe extern "C" {
|
||||
@@ -72,16 +71,6 @@ pub fn init(uart: &Uart, boot_hart: usize) -> &'static mut mmu::PageTable {
|
||||
kernel_pt
|
||||
}
|
||||
|
||||
pub fn probe_block_device(uart: &Uart) -> Option<VirtioBlk> {
|
||||
let blk = VirtioBlk::probe();
|
||||
if blk.is_some() {
|
||||
uart.write_str("k-os: VirtIO block device found\n");
|
||||
} else {
|
||||
uart.write_str("k-os: no block device\n");
|
||||
}
|
||||
blk
|
||||
}
|
||||
|
||||
fn zero_bss() {
|
||||
unsafe {
|
||||
let start = &_bss_start as *const u8 as *mut u8;
|
||||
|
||||
Reference in New Issue
Block a user