1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-23 04:12:02 +00:00

kern: mark initial threads as intended constinit

This commit is contained in:
Michael Scire 2020-02-19 05:45:32 -08:00
parent b99bcbc619
commit d9c3908caf

View file

@ -30,8 +30,8 @@ namespace ams::kern {
namespace {
KThread g_main_threads[cpu::NumCores];
KThread g_idle_threads[cpu::NumCores];
/* TODO: C++20 constinit */ std::array<KThread, cpu::NumCores> g_main_threads;
/* TODO: C++20 constinit */ std::array<KThread, cpu::NumCores> g_idle_threads;
}
KThread &Kernel::GetMainThread(s32 core_id) { return g_main_threads[core_id]; }