1
0
Fork 0
forked from koniifer/ableos
ableos-framebuffer/ableos/src/panic.rs

12 lines
218 B
Rust
Raw Normal View History

2022-07-29 12:48:45 -05:00
use core::panic::PanicInfo;
use log::error;
use crate::arch::interrupts::{bsod, BSODSource};
#[panic_handler]
fn panic_handler(info: &PanicInfo) -> ! {
2022-08-01 02:16:19 -05:00
error!("{:?}", info);
2022-07-29 12:48:45 -05:00
bsod(BSODSource::Panic(info));
}