From 50858d043cbd6f61cc091c6772f981ca2d6cca6b Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 29 Apr 2020 00:39:24 +0200 Subject: Added basic exec calls for init and started libc --- src/userspace/programs/init.c | 7 +++++-- src/userspace/programs/sh.c | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src/userspace/programs') 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 + 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 +} -- cgit v1.2.3