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, 9 insertions, 1 deletions
diff --git a/src/userspace/programs/init.c b/src/userspace/programs/init.c
index 732c104..5ff1864 100644
--- a/src/userspace/programs/init.c
+++ b/src/userspace/programs/init.c
@@ -1,15 +1,23 @@
#include <stdio.h>
#include <stdlib.h>
+#include <common.h>
#include <syscall.h>
#include <unistd.h>
#include <gui.h>
+void test(u8 *data)
+{
+ syscall_halt();
+}
+
void main()
{
/* gui_init(); */
/* gui_screen_clear(); */
//printf("Initializing userspace...\n");
- syscall_exec("/bin/sh");
+ syscall_map(MAP_KEYBOARD, (u8 *)&test);
+
+ //syscall_exec("/bin/sh");
while (1) {
};