diff options
author | Nathan Ringo <nathan@remexre.com> | 2024-08-26 15:25:55 -0500 |
---|---|---|
committer | Nathan Ringo <nathan@remexre.com> | 2024-08-26 15:25:55 -0500 |
commit | 76f0764cebe313a75b9b170fa23fa940d9e5738a (patch) | |
tree | b56641c41748594582aa56f9a539f04152cfc108 /kernel/src/panic.rs | |
parent | f1897c47a8f03955b76d521d1843a25123bd65a2 (diff) |
The start of interrupt and timer support, with some DeviceTree parsing.
Diffstat (limited to 'kernel/src/panic.rs')
-rw-r--r-- | kernel/src/panic.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/src/panic.rs b/kernel/src/panic.rs index aa7df78..14bddf1 100644 --- a/kernel/src/panic.rs +++ b/kernel/src/panic.rs @@ -1,11 +1,13 @@ //! The kernel panic handler. +use crate::interrupts::disable_interrupts; use core::{arch::asm, panic::PanicInfo}; #[panic_handler] fn panic(info: &PanicInfo) -> ! { log::error!("{info}"); + disable_interrupts(); loop { unsafe { asm!("wfi") } } |