aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/syscall/syscall.c')
-rw-r--r--src/kernel/syscall/syscall.c2
1 files changed, 1 insertions, 1 deletions
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);