aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/programs
diff options
context:
space:
mode:
Diffstat (limited to 'src/userspace/programs')
-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) {
};