diff --git a/interrupt/handlers.asm b/interrupt/handlers.asm index 40b5a7f..6846b74 100644 --- a/interrupt/handlers.asm +++ b/interrupt/handlers.asm @@ -33,5 +33,4 @@ handle_keyboard_asm: pop rsi; pop rdi; pop rax; - add rsp, 4; - iret ; + iretq ; diff --git a/interrupt/handlers.h b/interrupt/handlers.h index 7923e4b..11c138e 100644 --- a/interrupt/handlers.h +++ b/interrupt/handlers.h @@ -77,7 +77,7 @@ extern "C" { // disable C++ name mangling for asm function * \todo(12) Fetch a single key * \todo(13) Extend to use the Prologue-Epilogue pattern */ -void handle_keyboard(); + void handle_keyboard(); } /*! \brief handle_panic