set IDT
This commit is contained in:
@@ -33,5 +33,5 @@ handle_keyboard_asm:
|
|||||||
pop rsi;
|
pop rsi;
|
||||||
pop rdi;
|
pop rdi;
|
||||||
pop rax;
|
pop rax;
|
||||||
|
add rsp, 4;
|
||||||
iret ;
|
iret ;
|
||||||
|
|||||||
@@ -101,6 +101,9 @@ void initInterruptHandlers() {
|
|||||||
IDT::InterruptDescriptor::ReturningWithError(handle_page_fault));
|
IDT::InterruptDescriptor::ReturningWithError(handle_page_fault));
|
||||||
|
|
||||||
// TODO: Add more handlers here
|
// TODO: Add more handlers here
|
||||||
|
IDT::set(Core::Interrupt::Vector::KEYBOARD,
|
||||||
|
IDT::InterruptDescriptor::Returning(handle_keyboard_asm));
|
||||||
|
|
||||||
// Load the idt pointer
|
// Load the idt pointer
|
||||||
IDT::load();
|
IDT::load();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user