x86_64: enable interrupts during syscall execution

This commit is contained in:
2026-02-19 19:00:04 +00:00
parent 44c2904c11
commit c69aed254f

View File

@@ -222,6 +222,7 @@ void syscall_dispatch(struct ml_cpu_context *regs)
SYSCALL_SIGNATURE(fn) = (SYSCALL_SIGNATURE())syscall_impl; SYSCALL_SIGNATURE(fn) = (SYSCALL_SIGNATURE())syscall_impl;
ml_int_enable();
regs->rax regs->rax
= fn(regs->rdi, = fn(regs->rdi,
regs->rsi, regs->rsi,
@@ -231,6 +232,7 @@ void syscall_dispatch(struct ml_cpu_context *regs)
regs->r9, regs->r9,
regs->r13, regs->r13,
regs->r14); regs->r14);
ml_int_disable();
} }
void hook_irq(enum irq_vector vec, struct irq_hook *hook) void hook_irq(enum irq_vector vec, struct irq_hook *hook)