aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/programs
diff options
context:
space:
mode:
authorMarvin Borner2020-04-29 00:39:24 +0200
committerMarvin Borner2020-04-29 00:39:24 +0200
commit50858d043cbd6f61cc091c6772f981ca2d6cca6b (patch)
tree82afcc2daf9c4b67d29832923283654913490d06 /src/userspace/programs
parent34c752f6fe4f71169172f1b3e46b1eddf69eba6e (diff)
Added basic exec calls for init and started libc
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
+}