aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/syscall.c
diff options
context:
space:
mode:
authorMarvin Borner2020-08-16 17:13:32 +0200
committerMarvin Borner2020-08-16 17:13:32 +0200
commit0dd3f5e6f4f7607611ce23510858ab3597b5df9f (patch)
tree19fa08636168489fa097dea675ef38a27d913d4d /kernel/features/syscall.c
parent36e36fae364dec02999f58edbe997780d901b674 (diff)
Added events and map syscall
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();