x86 tss
This commit is contained in:
parent
9d69b7a82a
commit
095c369061
2 changed files with 3 additions and 3 deletions
|
|
@ -5,7 +5,8 @@ lazy_static! {
|
||||||
let mut idt = Idt::new();
|
let mut idt = Idt::new();
|
||||||
idt.breakpoint.set_handler_fn(breakpoint_handler);
|
idt.breakpoint.set_handler_fn(breakpoint_handler);
|
||||||
idt.double_fault.set_handler_fn(double_fault_handler);
|
idt.double_fault.set_handler_fn(double_fault_handler);
|
||||||
idt[0x21].set_handler_fn(::keyboard::kbd_callback);
|
// int #1 is keyboard
|
||||||
|
idt.interrupts[1].set_handler_fn(::keyboard::kbd_callback);
|
||||||
idt
|
idt
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
use x86::*;
|
|
||||||
use x86::structures::paging::*;
|
use x86::structures::paging::*;
|
||||||
use memory::paging::{self, ActivePageTable};
|
use memory::paging::{ActivePageTable};
|
||||||
use memory::*;
|
use memory::*;
|
||||||
use core::ops::Range;
|
use core::ops::Range;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue