From: Amelia Coutard <eliottulio.coutard@gmail.com>
Date: Tue, 14 Mar 2023 11:50:37 +0000 (+0100)
Subject: Added missing save of rflags
X-Git-Url: https://git.ameliathe1st.gay/?a=commitdiff_plain;h=88a854b54381587439388757287ca42c0f7ee278;p=voyage-au-centre-des-fichiers.git

Added missing save of rflags
---

diff --git a/kernel/src/interrupts.S b/kernel/src/interrupts.S
index 2d4b75c..2259e3c 100644
--- a/kernel/src/interrupts.S
+++ b/kernel/src/interrupts.S
@@ -20,8 +20,10 @@
 	pushq %r8;  \
 	pushq %r9;  \
 	pushq %r10; \
-	pushq %r11;
+	pushq %r11; \
+	pushfq;
 #define POP_REGS   \
+	popfq; \
 	popq %r11; \
 	popq %r10; \
 	popq %r9;  \
@@ -37,7 +39,7 @@
 	handler_##n: ;\
 	cli; \
 	PUSH_REGS \
-	mov 72(%rsp), %rdi ;\
+	mov 80(%rsp), %rdi ;\
 	handler ;\
 	movq $0xB0, %rdi;\
 	movq $0, %rsi;\