From 31767b532e69c5a63df0106fa08e137e3106a449 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 7 May 2020 00:16:52 +0200 Subject: Some fixes here and there... Also implemented serial console in userspace --- src/kernel/syscall/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/syscall/syscall.c') diff --git a/src/kernel/syscall/syscall.c b/src/kernel/syscall/syscall.c index 820afc7..958428a 100644 --- a/src/kernel/syscall/syscall.c +++ b/src/kernel/syscall/syscall.c @@ -35,7 +35,7 @@ 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); - if (r->eax == 2) // TODO: Fix hardcoded fork parameters + if (r->eax == SYS_FORK) // TODO: Fix hardcoded fork parameters r->eax = location(r); else r->eax = location(r->ebx, r->ecx, r->edx, r->esi, r->edi); -- cgit v1.2.3