From c69aed254fe0ceb760a34415348bdf8847fb36fd Mon Sep 17 00:00:00 2001 From: Max Wash Date: Thu, 19 Feb 2026 19:00:04 +0000 Subject: [PATCH] x86_64: enable interrupts during syscall execution --- arch/x86_64/irq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86_64/irq.c b/arch/x86_64/irq.c index 3716988..57365fd 100644 --- a/arch/x86_64/irq.c +++ b/arch/x86_64/irq.c @@ -222,6 +222,7 @@ void syscall_dispatch(struct ml_cpu_context *regs) SYSCALL_SIGNATURE(fn) = (SYSCALL_SIGNATURE())syscall_impl; + ml_int_enable(); regs->rax = fn(regs->rdi, regs->rsi, @@ -231,6 +232,7 @@ void syscall_dispatch(struct ml_cpu_context *regs) regs->r9, regs->r13, regs->r14); + ml_int_disable(); } void hook_irq(enum irq_vector vec, struct irq_hook *hook)