summaryrefslogtreecommitdiff
path: root/src/kernel/syscalls.c
diff options
context:
space:
mode:
authordzwdz2023-09-16 20:48:28 +0200
committerdzwdz2023-09-17 17:13:50 +0200
commit4ade8ff9e6c4185ebe45ecfe183668f28e1525b7 (patch)
tree26fdfa0659f4a32fc3d187658c2d8d457b272578 /src/kernel/syscalls.c
parent458978e7b8a6d50566fc8b68558f76f6b0465c52 (diff)
kernel/amd64: add HPET support, slightly rework time handling
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r--src/kernel/syscalls.c3
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) {