sched: add kernel-mode context switching
This commit is contained in:
@@ -37,6 +37,8 @@ void kernel_init(uintptr_t arg)
|
||||
|
||||
run_all_tests();
|
||||
|
||||
current_thread()->tr_state = THREAD_SLEEPING;
|
||||
|
||||
while (1) {
|
||||
ml_cpu_pause();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user