diff options
Diffstat (limited to 'kernel/features')
-rw-r--r-- | kernel/features/syscall.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/features/syscall.c b/kernel/features/syscall.c index 157f10c..c8da824 100644 --- a/kernel/features/syscall.c +++ b/kernel/features/syscall.c @@ -10,6 +10,7 @@ #include <proc.h> #include <str.h> #include <sys.h> +#include <timer.h> void syscall_handler(struct regs *r) { @@ -66,6 +67,11 @@ void syscall_handler(struct regs *r) proc_exit(proc_current(), r->ebx); break; } + case SYS_TIME: { + printf("time\n"); + r->eax = timer_get(); + break; + } case SYS_MAP: { printf("map\n"); event_map(r->ebx, proc_current(), (u32 *)r->ecx); |