From 0f54f0de1004c6e9a455c295dc76879ac37a408f Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 29 Apr 2020 21:16:56 +0200 Subject: Fixed several warnings, errors and dumb bugs --- src/userspace/programs/init.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/userspace/programs') diff --git a/src/userspace/programs/init.c b/src/userspace/programs/init.c index af4f5f1..a669249 100644 --- a/src/userspace/programs/init.c +++ b/src/userspace/programs/init.c @@ -1,12 +1,18 @@ #include +#include #include #include void main() { - printf("Initializing userspace...\n"); + u32 *buf = malloc(4096); + for (int i = 0; i < 4; i++) + buf[i] = 42; + syscall_halt(); + + //printf("Initializing userspace...\n"); //gui_init(); - syscall_exec("/bin/sh"); + //syscall_exec("/bin/sh"); while (1) { }; -- cgit v1.2.3