From f606ba4461513a43e0cc2e317d06963490618e3c Mon Sep 17 00:00:00 2001 From: Kit Rhett Aultman Date: Mon, 2 Sep 2024 19:43:26 -0400 Subject: [PATCH] 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. --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } -- 2.34.1