kern: move KTargetSystem into .rodata, split init/verify

This commit is contained in:
Michael Scire 2024-10-09 15:12:46 -07:00 committed by SciresM
parent 3394a88a1a
commit 743634c3fd
6 changed files with 83 additions and 54 deletions

View file

@ -111,4 +111,8 @@ namespace ams::kern {
KThread &Kernel::GetMainThread(s32 core_id) { return g_main_threads.m_arr[core_id]; }
KThread &Kernel::GetIdleThread(s32 core_id) { return g_idle_threads.m_arr[core_id]; }
__attribute__((constructor)) void ConfigureKTargetSystem() {
KSystemControl::ConfigureKTargetSystem();
}
}