aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/programs
diff options
context:
space:
mode:
Diffstat (limited to 'src/userspace/programs')
-rw-r--r--src/userspace/programs/init.c7
-rw-r--r--src/userspace/programs/sh.c2
2 files changed, 6 insertions, 3 deletions
diff --git a/src/userspace/programs/init.c b/src/userspace/programs/init.c
index bf3c7f4..3011530 100644
--- a/src/userspace/programs/init.c
+++ b/src/userspace/programs/init.c
@@ -1,6 +1,9 @@
+#include <syscall.h>
+
void main()
{
- // TODO: Exec shell
+ syscall_exec("/bin/sh");
+
while (1) {
};
-} \ No newline at end of file
+}
diff --git a/src/userspace/programs/sh.c b/src/userspace/programs/sh.c
index 6dcb206..f477d6e 100644
--- a/src/userspace/programs/sh.c
+++ b/src/userspace/programs/sh.c
@@ -11,4 +11,4 @@ void main()
}
syscall_halt();
-} \ No newline at end of file
+}