From e8f1c287a63f0f71fe463f7271834538b45f8c05 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 2 May 2020 18:17:35 +0200 Subject: Some work in the vfs --- src/kernel/syscall/syscall.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/kernel/syscall/syscall.c') diff --git a/src/kernel/syscall/syscall.c b/src/kernel/syscall/syscall.c index d09ee33..53f94cd 100644 --- a/src/kernel/syscall/syscall.c +++ b/src/kernel/syscall/syscall.c @@ -32,7 +32,10 @@ void syscall_handler(struct regs *r) log("[SYSCALL] %d at [0x%x] with 0x%x 0x%x 0x%x 0x%x", r->eax, location, r->ebx, r->ecx, r->edx, r->esi, r->edi); - r->eax = location(r->ebx, r->ecx, r->edx, r->esi, r->edi); + if (r->eax == 2) // TODO: Fix hardcoded fork parameters + r->eax = location(r); + else + r->eax = location(r->ebx, r->ecx, r->edx, r->esi, r->edi); sti(); } -- cgit v1.2.3