aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/features/syscall.c')
-rw-r--r--kernel/features/syscall.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/features/syscall.c b/kernel/features/syscall.c
index e6bcb83..2f2cbbb 100644
--- a/kernel/features/syscall.c
+++ b/kernel/features/syscall.c
@@ -1,6 +1,7 @@
// MIT License, Copyright (c) 2020 Marvin Borner
#include <cpu.h>
+#include <event.h>
#include <fs.h>
#include <interrupts.h>
#include <load.h>
@@ -50,6 +51,10 @@ void syscall_handler(struct regs *r)
proc_exit();
break;
}
+ case SYS_MAP: {
+ event_map(r->ebx, (u32(*)())r->ecx);
+ break;
+ }
default: {
printf("Unknown syscall!\n");
loop();