diff options
author | Anton Kling <anton@kling.gg> | 2024-02-17 16:45:16 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-02-17 16:45:16 +0100 |
commit | 61c443579150a4714c132ecb1ac18779535f91c9 (patch) | |
tree | c1d83ed763b9d16051abd9fd921bb9815e710c70 /kernel/init | |
parent | 413d09388bf33c658f3e71b18e4b069f18461393 (diff) |
cleanup
Diffstat (limited to 'kernel/init')
-rw-r--r-- | kernel/init/kernel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/init/kernel.c b/kernel/init/kernel.c index 4a14216..45cb9db 100644 --- a/kernel/init/kernel.c +++ b/kernel/init/kernel.c @@ -107,7 +107,7 @@ void kernel_main(u32 kernel_end, unsigned long magic, unsigned long addr, } } for (;;) { - asm("sti"); - switch_task(0); + get_current_task()->sleep_until = pit_num_ms() + 100000000; + switch_task(); } } |