kern: fix bugs in interrupt permittance, DpcManager init

This commit is contained in:
Michael Scire 2020-07-22 18:03:12 -07:00 committed by SciresM
parent afe7e41de8
commit eecf59dd00
5 changed files with 3 additions and 14 deletions

View file

@ -126,9 +126,9 @@ namespace ams::kern {
/* Launch the new thread. */
g_preemption_priorities[core_id] = priority;
if (core_id == cpu::NumCores - 1) {
MESOSPHERE_R_ABORT_UNLESS(KThread::InitializeKernelThread(new_thread, DpcManagerNormalThreadFunction, 0, DpcManagerThreadPriority, core_id));
} else {
MESOSPHERE_R_ABORT_UNLESS(KThread::InitializeKernelThread(new_thread, DpcManagerPreemptionThreadFunction, 0, DpcManagerThreadPriority, core_id));
} else {
MESOSPHERE_R_ABORT_UNLESS(KThread::InitializeKernelThread(new_thread, DpcManagerNormalThreadFunction, 0, DpcManagerThreadPriority, core_id));
}
/* Register the new thread. */