mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Force unlock the Writer on panic
This commit is contained in:
@@ -42,6 +42,9 @@ fn kernel_main(boot_info: &'static mut BootInfo) -> ! {
|
||||
#[cfg(not(test))]
|
||||
#[panic_handler]
|
||||
fn panic(info: &PanicInfo) -> ! {
|
||||
unsafe {
|
||||
blog_os::framebuffer::WRITER.force_unlock();
|
||||
};
|
||||
println!("{}", info);
|
||||
blog_os::hlt_loop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user