diff options
author | Marvin Borner | 2020-08-22 17:38:40 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-22 17:38:40 +0200 |
commit | 424dc57424ee17de77d689443f95d2e1bed72f4a (patch) | |
tree | 1ae2f071ee2de984a2f112de0e69208e593ddc51 /kernel/features/syscall.c | |
parent | d748a6f54ce7af45afde487936d5a02cb2a91b05 (diff) |
Added random number generator
Diffstat (limited to 'kernel/features/syscall.c')
-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); |