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.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: {