This commit is contained in:
Eggert Jung
2025-05-10 21:17:52 +02:00
parent ebd3bd3597
commit 2a0f0573db
2 changed files with 4 additions and 1 deletions

View File

@@ -33,5 +33,5 @@ handle_keyboard_asm:
pop rsi;
pop rdi;
pop rax;
add rsp, 4;
iret ;

View File

@@ -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();
}