style: cargo fmt kernel crates

This commit is contained in:
2026-10-26 19:07:54 +01:00
parent 818eaecadd
commit 1c04ddf909
50 changed files with 995 additions and 499 deletions

View File

@@ -42,8 +42,8 @@ extern "C" fn kmain() -> ! {
uart.write_str("k-os: booted on RISC-V\n");
let kernel_pt = boot::hardware::init(&uart);
let mut blk = boot::hardware::probe_block_device(&uart)
.unwrap_or_else(|| halt(&uart, "no block device"));
let mut blk =
boot::hardware::probe_block_device(&uart).unwrap_or_else(|| halt(&uart, "no block device"));
let (init, _) = boot::loader::load_init(&uart, &mut blk, kernel_pt);
let storage = boot::loader::load_server(&uart, &mut blk, kernel_pt, b"storage.elf", "storage");
@@ -65,7 +65,9 @@ pub fn halt(uart: &Uart, msg: &str) -> ! {
uart.write_str("k-os: FATAL — ");
uart.write_str(msg);
uart.put_char(b'\n');
loop { unsafe { core::arch::asm!("wfi") }; }
loop {
unsafe { core::arch::asm!("wfi") };
}
}
#[panic_handler]
@@ -78,5 +80,7 @@ fn panic(info: &core::panic::PanicInfo) -> ! {
uart.write_dec(location.line() as usize);
}
uart.put_char(b'\n');
loop { unsafe { core::arch::asm!("wfi") }; }
loop {
unsafe { core::arch::asm!("wfi") };
}
}