diff options
Diffstat (limited to 'src/userspace/programs')
-rw-r--r-- | src/userspace/programs/init.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/userspace/programs/init.c b/src/userspace/programs/init.c index 68d025c..f3ca614 100644 --- a/src/userspace/programs/init.c +++ b/src/userspace/programs/init.c @@ -10,16 +10,13 @@ void main() // TODO: Fix page fault when mallocing printf("Initializing userspace...\n"); - // TODO: Implement wait syscall - int x; - int f = fork(); + u32 x; + u32 f = fork(); if (f == 0) - ; //wait(&x); + wait(&x); else exec("/bin/sh"); - //syscall_exec("/bin/sh"); - while (1) { }; }
\ No newline at end of file |