From d9c3908caf4fed6817a00f57bac9ea265b455cb4 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 19 Feb 2020 05:45:32 -0800 Subject: [PATCH] kern: mark initial threads as intended constinit --- mesosphere/kernel/source/kern_kernel_instantiations.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesosphere/kernel/source/kern_kernel_instantiations.cpp b/mesosphere/kernel/source/kern_kernel_instantiations.cpp index ddd4dafde..d15bbbbd6 100644 --- a/mesosphere/kernel/source/kern_kernel_instantiations.cpp +++ b/mesosphere/kernel/source/kern_kernel_instantiations.cpp @@ -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 g_main_threads; + /* TODO: C++20 constinit */ std::array g_idle_threads; } KThread &Kernel::GetMainThread(s32 core_id) { return g_main_threads[core_id]; }