From 07b7e8ad787180b7e3eaccc819b9e5c4802edfcd Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 11 Apr 2022 23:11:37 +0200 Subject: kernel/arch: only allow IRQs in the idle process --- src/kernel/arch/i386/sysenter.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/kernel/arch') diff --git a/src/kernel/arch/i386/sysenter.c b/src/kernel/arch/i386/sysenter.c index 5712ee3..1aee254 100644 --- a/src/kernel/arch/i386/sysenter.c +++ b/src/kernel/arch/i386/sysenter.c @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -21,6 +22,8 @@ _Noreturn void sysenter_stage2(void) { regs->esp = (userptr_t) regs->ecx; // fix them up regs->eip = (userptr_t) regs->edx; + irq_interrupt_flag(false); + val = _syscall(regs->eax, regs->ebx, regs->esi, regs->edi, (uintptr_t)regs->ebp); if (process_current->state == PS_RUNNING) { // TODO move to _syscall() -- cgit v1.2.3