diff options
Diffstat (limited to 'src/kernel/arch/i386/sysenter.c')
-rw-r--r-- | src/kernel/arch/i386/sysenter.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/kernel/arch/i386/sysenter.c b/src/kernel/arch/i386/sysenter.c index 5712ee3..1d2a333 100644 --- a/src/kernel/arch/i386/sysenter.c +++ b/src/kernel/arch/i386/sysenter.c @@ -23,10 +23,6 @@ _Noreturn void sysenter_stage2(void) { val = _syscall(regs->eax, regs->ebx, regs->esi, regs->edi, (uintptr_t)regs->ebp); - if (process_current->state == PS_RUNNING) { // TODO move to _syscall() - regs_savereturn(&process_current->regs, val); - process_switch(process_current); // TODO process_resume - } else { - process_switch_any(); - } + regs_savereturn(&process_current->regs, val); + process_switch_any(); } |