diff options
author | dzwdz | 2023-09-16 20:48:28 +0200 |
---|---|---|
committer | dzwdz | 2023-09-17 17:13:50 +0200 |
commit | 4ade8ff9e6c4185ebe45ecfe183668f28e1525b7 (patch) | |
tree | 26fdfa0659f4a32fc3d187658c2d8d457b272578 /src/kernel/syscalls.c | |
parent | 458978e7b8a6d50566fc8b68558f76f6b0465c52 (diff) |
kernel/amd64: add HPET support, slightly rework time handling
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r-- | src/kernel/syscalls.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index b040285..a2e0e27 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -347,8 +347,7 @@ long _sys_pipe(hid_t __user user_ends[2], int flags) { } void _sys_sleep(long ms) { - // TODO no overflow check - can leak current uptime - timer_schedule(proc_cur, uptime_ms() + ms); + timer_schedule(proc_cur, ms * 1000000); } void _sys_filicide(void) { |