aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/programs/init.c
diff options
context:
space:
mode:
authorMarvin Borner2020-05-06 22:34:38 +0200
committerMarvin Borner2020-05-06 22:34:38 +0200
commit8083536f321ad8a12ad4668c2bf41a65c3e3b2f6 (patch)
tree427d7da11944b299bdce3041259bf8fd31971ede /src/userspace/programs/init.c
parentd94ffac4a584dc7a4f6f2ec567b8caab05ce9253 (diff)
Added event mapping driver
Diffstat (limited to 'src/userspace/programs/init.c')
-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) {
};