From 4d2f18d481244ce2e811acb847afe1b1d748fff9 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Wed, 9 Sep 2020 16:35:52 +0200 Subject: [PATCH] Force unlock the Writer on panic --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index b057f743..8df957e7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(); }