From 88a854b54381587439388757287ca42c0f7ee278 Mon Sep 17 00:00:00 2001 From: Amelia Coutard Date: Tue, 14 Mar 2023 12:50:37 +0100 Subject: [PATCH] Added missing save of rflags --- kernel/src/interrupts.S | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;\ -- 2.47.0