aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/syscall.c
diff options
context:
space:
mode:
authorMarvin Borner2020-08-17 13:52:51 +0200
committerMarvin Borner2020-08-17 13:52:51 +0200
commitca7d400b7705ba887df69391cb774d4de83e8bf3 (patch)
treea59b97c9405413d1cb01e05c3f0c760554cecc5c /kernel/features/syscall.c
parent0ba9ee15d0a229c619f35a5db04e45fe8861c3c9 (diff)
Added event unmap
Diffstat (limited to 'kernel/features/syscall.c')
-rw-r--r--kernel/features/syscall.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/features/syscall.c b/kernel/features/syscall.c
index 2a01d8a..9d5ac82 100644
--- a/kernel/features/syscall.c
+++ b/kernel/features/syscall.c
@@ -53,7 +53,11 @@ void syscall_handler(struct regs *r)
break;
}
case SYS_MAP: {
- event_map(r->ebx, (u32(*)())r->ecx);
+ event_map(r->ebx, (u32 *)r->ecx);
+ break;
+ }
+ case SYS_UNMAP: {
+ event_unmap(r->ebx, (u32 *)r->ecx);
break;
}
default: {