Merge branch 'post-08' into post-09

This commit is contained in:
Philipp Oppermann
2019-11-22 16:33:23 +01:00

View File

@@ -4,7 +4,7 @@
// problem we skip compilation of this module on Windows. // problem we skip compilation of this module on Windows.
#![cfg(not(windows))] #![cfg(not(windows))]
use crate::{gdt, hlt_loop, print, println}; use crate::{gdt, print, println};
use lazy_static::lazy_static; use lazy_static::lazy_static;
use pic8259_simple::ChainedPics; use pic8259_simple::ChainedPics;
use spin; use spin;
@@ -74,8 +74,7 @@ extern "x86-interrupt" fn double_fault_handler(
stack_frame: &mut InterruptStackFrame, stack_frame: &mut InterruptStackFrame,
_error_code: u64, _error_code: u64,
) { ) {
println!("EXCEPTION: DOUBLE FAULT\n{:#?}", stack_frame); panic!("EXCEPTION: DOUBLE FAULT\n{:#?}", stack_frame);
hlt_loop();
} }
extern "x86-interrupt" fn timer_interrupt_handler(_stack_frame: &mut InterruptStackFrame) { extern "x86-interrupt" fn timer_interrupt_handler(_stack_frame: &mut InterruptStackFrame) {