MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / kernel_thread_bootstrap

Function kernel_thread_bootstrap

src/task/schedule.cpp:26–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#include "virtual_memory.hpp"
25
26extern "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
36auto TaskManager::Schedule() -> void {
37 auto& cpu_sched = GetCurrentCpuSched();

Callers

nothing calls this directly

Calls 2

EnableInterruptFunction · 0.85
PauseFunction · 0.85

Tested by

no test coverage detected