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

Function _start

tests/system_test/main.cpp:263–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261std::atomic_flag primary_booted_ = ATOMIC_FLAG_INIT;
262
263auto _start(int argc, const char** argv) -> void {
264 if (!primary_booted_.test_and_set(std::memory_order_acquire)) {
265 CppInit();
266 main(argc, argv);
267 } else {
268 main_smp(argc, argv);
269 }
270
271 while (true) {
272 cpu_io::Pause();
273 }
274}
275
276auto main(int argc, const char** argv) -> int {
277 per_cpu::PerCpuArraySingleton::create();

Callers

nothing calls this directly

Calls 4

CppInitFunction · 0.85
PauseFunction · 0.85
mainFunction · 0.70
main_smpFunction · 0.70

Tested by

no test coverage detected