diff options
author | Marvin Borner | 2021-06-08 21:13:33 +0200 |
---|---|---|
committer | Marvin Borner | 2021-06-08 21:13:33 +0200 |
commit | 24ce56cccb6f179f8c6ed9ad82e6afb871aabf80 (patch) | |
tree | ec3283601331b6def7218c7b39386d6bb25bcd5b /kernel/features/syscall.c | |
parent | f7890c4b16b5d817db286119ac0a88630c3a1cf9 (diff) |
Process exit improvements
Diffstat (limited to 'kernel/features/syscall.c')
-rw-r--r-- | kernel/features/syscall.c | 4 |
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: { |