kern: mostly implement KThread::Initialize
This commit is contained in:
1 parent
d9db723bc8
commit
b2b1129cc0
11 files changed
+383
-15
No files matched your search
@@ -19,7 +19,7 @@ namespace ams::kern {
|
||||
|
||||
NORETURN void HorizonKernelMain(s32 core_id) {
|
||||
/* Setup the Core Local Region, and note that we're initializing. */
|
||||
Kernel::Initialize(core_id);
|
||||
Kernel::InitializeCoreLocalRegion(core_id);
|
||||
Kernel::SetState(Kernel::State::Initializing);
|
||||
|
||||
/* Ensure that all cores get to this point before proceeding. */
|
||||
@@ -29,7 +29,7 @@ namespace ams::kern {
|
||||
/* Synchronize after each init to ensure the cores go in order. */
|
||||
for (size_t i = 0; i < cpu::NumCores; i++) {
|
||||
if (static_cast<s32>(i) == core_id) {
|
||||
Kernel::InitializeCoreThreads(core_id);
|
||||
Kernel::InitializeMainAndIdleThreads(core_id);
|
||||
}
|
||||
cpu::SynchronizeAllCores();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user