| 24 | #include "virtual_memory.hpp" |
| 25 | |
| 26 | extern "C" [[noreturn]] void kernel_thread_bootstrap(void (*entry)(void*), |
| 27 | void* arg) { |
| 28 | cpu_io::EnableInterrupt(); |
| 29 | entry(arg); |
| 30 | assert(false && "kernel thread returned without calling sys_exit()"); |
| 31 | while (true) { |
| 32 | cpu_io::Pause(); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | auto TaskManager::Schedule() -> void { |
| 37 | auto& cpu_sched = GetCurrentCpuSched(); |
nothing calls this directly
no test coverage detected