summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-07-06 18:21:07 +0200
committerAnton Kling <anton@kling.gg>2024-07-06 18:21:07 +0200
commit9d8b3ba25404fb5f343a061caeae56914b3ce02a (patch)
tree35f2d55675cfb7f9093b10617d9d987556fed3f3
parent7e7f15d494c6fcdbba8e7ba24ce9ca04181a3f7b (diff)
Kernel: Fix sleep function to use uptime instead of UTC time
-rw-r--r--kernel/cpu/syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cpu/syscall.c b/kernel/cpu/syscall.c
index 7653c6a..9c3dde0 100644
--- a/kernel/cpu/syscall.c
+++ b/kernel/cpu/syscall.c
@@ -227,7 +227,7 @@ void *syscall_mmap(SYS_MMAP_PARAMS *args) {
void syscall_msleep(u32 ms) {
struct timespec t;
timer_get(&t);
- current_task->sleep_until = timer_get_ms() + ms;
+ current_task->sleep_until = timer_get_uptime() + ms;
switch_task();
}