From 06f089b35046342fca2c30040749c632785ce6c6 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 14 Sep 2021 20:35:35 +0200 Subject: merge the `syscall_handler` and `_syscall` declarations i think that making the call a bit more "transparent" makes the code nicer --- src/kernel/arch/i386/sysenter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/kernel/arch/i386') diff --git a/src/kernel/arch/i386/sysenter.c b/src/kernel/arch/i386/sysenter.c index 6419439..a0d4f73 100644 --- a/src/kernel/arch/i386/sysenter.c +++ b/src/kernel/arch/i386/sysenter.c @@ -1,5 +1,6 @@ #include #include +#include struct registers _sysexit_regs; // a hack @@ -21,8 +22,8 @@ _Noreturn void sysenter_stage2(void) { regs->esp = (userptr_t) regs->ecx; // fix them up regs->eip = (userptr_t) regs->edx; - val = syscall_handler(regs->eax, regs->ebx, - regs->esi, regs->edi, (uintptr_t)regs->ebp); + val = _syscall(regs->eax, regs->ebx, + regs->esi, regs->edi, (uintptr_t)regs->ebp); regs_savereturn(&process_current->regs, val); process_switch(process_current); // TODO process_resume -- cgit v1.2.3