dev #4
@@ -18,7 +18,6 @@ static IDT: Lazy<InterruptDescriptorTable> = Lazy::new(|| {
|
||||
idt
|
||||
});
|
||||
|
||||
|
||||
pub const PIC_1_OFFSET: u8 = 32;
|
||||
pub const PIC_2_OFFSET: u8 = PIC_1_OFFSET + 8;
|
||||
|
||||
@@ -42,7 +41,6 @@ impl InterruptIndex {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pub fn init_idt() {
|
||||
IDT.load();
|
||||
unsafe {
|
||||
@@ -87,4 +85,3 @@ extern "x86-interrupt" fn timer_interrupt_handler(_stack_frame: InterruptStackFr
|
||||
.notify_end_of_interrupt(InterruptIndex::Timer.as_u8());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
pub mod gdt;
|
||||
|
||||
pub mod interrupts;
|
||||
|
||||
Reference in New Issue
Block a user