]> git.ameliathe1st.gay Git - voyage-au-centre-des-fichiers.git/commitdiff
Added missing save of rflags
authorAmelia Coutard <eliottulio.coutard@gmail.com>
Tue, 14 Mar 2023 11:50:37 +0000 (12:50 +0100)
committerAmelia Coutard <eliottulio.coutard@gmail.com>
Tue, 14 Mar 2023 11:50:37 +0000 (12:50 +0100)
kernel/src/interrupts.S

index 2d4b75c06761471767195c423913b782387d1ff2..2259e3c312b9476eddad9c3a48cfd435f1206a76 100644 (file)
        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;\