From 8083536f321ad8a12ad4668c2bf41a65c3e3b2f6 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 6 May 2020 22:34:38 +0200 Subject: Added event mapping driver --- src/userspace/programs/init.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/userspace/programs/init.c') 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 #include +#include #include #include #include +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) { }; -- cgit v1.2.3