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