From: Kit Rhett Aultman Date: Mon, 2 Sep 2024 23:43:26 +0000 (-0400) Subject: main.rs: minor whitespace cleanup X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=f606ba4461513a43e0cc2e317d06963490618e3c;p=riscv_baremetal.git main.rs: minor whitespace cleanup A prior commit didn't have rustfmt run on it, so this commit is a catchup on the whitespace nits left behind. --- diff --git a/src/main.rs b/src/main.rs index 7c0fa4a..d7e0076 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,6 +13,7 @@ mod trap; use core::arch::asm; use core::arch::global_asm; use core::panic::PanicInfo; + global_asm!(include_str!("trap.S")); // cfg not test is set here because the analyzer and the test system @@ -114,10 +115,11 @@ extern "C" fn entry() -> ! { trap_frame = in(reg)(&raw mut trap::TRAP_FRAME as usize) ); } + println!("Kernel init complete"); println!("Going idle!"); - unsafe { asm!("1:","wfi", "j 1b") } // Hopefully wfi will make this less busy (1b is + unsafe { asm!("1:", "wfi", "j 1b") } // Hopefully wfi will make this less busy (1b is // 'backwards to 1:' loop {} // Definitely not gonna happen }