aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/features/syscall.c')
-rw-r--r--kernel/features/syscall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/features/syscall.c b/kernel/features/syscall.c
index 93355db..6e43caa 100644
--- a/kernel/features/syscall.c
+++ b/kernel/features/syscall.c
@@ -89,14 +89,14 @@ static u32 syscall_handler(u32 esp)
struct proc *proc = proc_make(PROC_PRIV_NONE);
frame->eax = (u32)elf_load(path, proc);
if (frame->eax != EOK)
- proc_exit(proc, -frame->eax);
+ panic("NOT IMPLEMENTED\n"); // TODO: Implement exec path/etc verify
else
proc_yield();
break;
}
case SYS_EXIT: {
frame->eax = EOK;
- proc_exit(proc_current(), (s32)frame->ebx);
+ proc_exit((s32)frame->ebx);
break;
}
case SYS_YIELD: {