diff options
| author | Natasha Moongrave <natasha@256phi.eu> | 2026-03-10 16:00:21 +0100 |
|---|---|---|
| committer | Natasha Moongrave <natasha@256phi.eu> | 2026-03-10 16:00:21 +0100 |
| commit | 6113a03b8eec5b36e02ea5b28ab2c0e7d2a842f2 (patch) | |
| tree | ea5f52463930fd506741db707493eaf63abecc25 | |
| parent | 71e338f71eb015acd1e142f5880efae2102bc942 (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.rs | 4 |
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)] |
