sched: add kernel-mode context switching

This commit is contained in:
2023-04-30 14:27:57 +01:00
parent 2cb2d9100a
commit 085c3d2a89
12 changed files with 340 additions and 27 deletions

View File

@@ -37,6 +37,8 @@ void kernel_init(uintptr_t arg)
run_all_tests();
current_thread()->tr_state = THREAD_SLEEPING;
while (1) {
ml_cpu_pause();
}