aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-03-10 16:00:21 +0100
committerNatasha Moongrave <natasha@256phi.eu>2026-03-10 16:00:21 +0100
commit6113a03b8eec5b36e02ea5b28ab2c0e7d2a842f2 (patch)
treeea5f52463930fd506741db707493eaf63abecc25
parent71e338f71eb015acd1e142f5880efae2102bc942 (diff)
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
-rw-r--r--StrixKernel/src/main.rs4
1 files 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)]