x86_64: enable interrupts during syscall execution
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user