mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 06:47:49 +00:00
Add a print_error function, which works for exceptions inside println
This commit is contained in:
@@ -14,7 +14,9 @@ pub fn init() {
|
||||
IDT.load();
|
||||
}
|
||||
|
||||
use vga_buffer::print_error;
|
||||
|
||||
extern "C" fn page_fault_handler() -> ! {
|
||||
println!("EXCEPTION: PAGE FAULT");
|
||||
unsafe { print_error(format_args!("EXCEPTION: PAGE FAULT")) };
|
||||
loop {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user