Force unlock the Writer on panic

This commit is contained in:
Philipp Oppermann
2020-09-09 16:35:52 +02:00
parent 4f4a70bf79
commit 4d2f18d481

View File

@@ -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();
}