aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/programs/init.c
diff options
context:
space:
mode:
authorMarvin Borner2020-04-29 21:16:56 +0200
committerMarvin Borner2020-04-29 21:16:56 +0200
commit0f54f0de1004c6e9a455c295dc76879ac37a408f (patch)
treeb3a6b086f33689fe887fdfcf80fa4e749b07d119 /src/userspace/programs/init.c
parent4546c75d685475d8b9f215b588364e1d1bbd0b79 (diff)
Fixed several warnings, errors and dumb bugs
Diffstat (limited to 'src/userspace/programs/init.c')
-rw-r--r--src/userspace/programs/init.c10
1 files changed, 8 insertions, 2 deletions
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 <stdio.h>
+#include <stdlib.h>
#include <syscall.h>
#include <gui.h>
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) {
};