From 3ad0d2328dcd5552729d10023aef3c92d7c137c6 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 21 Apr 2023 11:16:52 +0300 Subject: [PATCH] Kernel: Don't call 'cli' on interrupt This is automatically done because we are using interrupt gates in the IDT --- kernel/arch/x86_64/interrupts.S | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kernel/arch/x86_64/interrupts.S b/kernel/arch/x86_64/interrupts.S index b7f61b27..d8dd93c5 100644 --- a/kernel/arch/x86_64/interrupts.S +++ b/kernel/arch/x86_64/interrupts.S @@ -83,7 +83,6 @@ irq_stub: .macro isr n .global isr\n isr\n: - cli pushq $0 pushq $\n jmp isr_stub @@ -92,7 +91,6 @@ irq_stub: .macro isr_err n .global isr\n isr\n: - cli pushq $\n jmp isr_stub .endm @@ -100,7 +98,6 @@ irq_stub: .macro irq n .global irq\n irq\n: - cli pushq $0 pushq $\n jmp irq_stub @@ -158,7 +155,6 @@ irq 15 .global syscall_asm syscall_asm: - cli pushaq movq %rax, %rdi movq %rbx, %rsi