From d5dc4935a58f4e7187ddca661a004dd22c3a6e2f Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 10 May 2025 22:16:22 +0200 Subject: [PATCH] fixed iret --- interrupt/handlers.asm | 3 +-- interrupt/handlers.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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