aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/syscall.c
diff options
context:
space:
mode:
authorMarvin Borner2020-08-15 14:21:52 +0200
committerMarvin Borner2020-08-15 14:21:52 +0200
commit32b8722128dfb4ca9e814940a23c2b22a283bb12 (patch)
tree80c881a7717dc129fd11baaf98cd8b226fd30c67 /kernel/features/syscall.c
parent162c84cfe6b4652bae213776944b910390553d41 (diff)
Added some syscall wrappers
Diffstat (limited to 'kernel/features/syscall.c')
-rw-r--r--kernel/features/syscall.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/features/syscall.c b/kernel/features/syscall.c
index 519532c..fd57f3b 100644
--- a/kernel/features/syscall.c
+++ b/kernel/features/syscall.c
@@ -30,8 +30,11 @@ void syscall_handler(struct regs *r)
case SYS_EXEC: {
char *path = (char *)r->ebx;
struct proc *proc = proc_make();
- bin_load(path, proc);
- proc_print();
+ r->eax = bin_load(path, proc);
+ break;
+ }
+ case SYS_EXIT: {
+ proc_exit();
break;
}
default: {