From 6113a03b8eec5b36e02ea5b28ab2c0e7d2a842f2 Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Tue, 10 Mar 2026 16:00:21 +0100 Subject: replace the loop{} in pani() and _start() to keep the machine running with the xustom hlt_loop to allow for better power efficiency and not need to amx out the CPU to hog cycles in src/main.rs --- StrixKernel/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/StrixKernel/src/main.rs b/StrixKernel/src/main.rs index 76d9c28..0230258 100644 --- a/StrixKernel/src/main.rs +++ b/StrixKernel/src/main.rs @@ -18,7 +18,7 @@ pub extern "C" fn _start() -> ! { #[cfg(test)] test_main(); - loop {} + strix_os::hlt_loop(); } /// This function is called on panic. @@ -26,7 +26,7 @@ pub extern "C" fn _start() -> ! { #[panic_handler] fn panic(info: &PanicInfo) -> ! { println!("Oppsie woopsie it appears something {}", info); - loop {} + strix_os::hlt_loop(); } #[cfg(test)] -- cgit v1.2.3