diff options
author | Marvin Borner | 2020-05-06 22:34:38 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-06 22:34:38 +0200 |
commit | 8083536f321ad8a12ad4668c2bf41a65c3e3b2f6 (patch) | |
tree | 427d7da11944b299bdce3041259bf8fd31971ede /src/userspace/programs | |
parent | d94ffac4a584dc7a4f6f2ec567b8caab05ce9253 (diff) |
Added event mapping driver
Diffstat (limited to 'src/userspace/programs')
-rw-r--r-- | src/userspace/programs/init.c | 10 |
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) { }; |