mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-14 15:14:23 -04:00
kern: mostly implement KThread::Initialize
This commit is contained in:
parent
d9db723bc8
commit
b2b1129cc0
11 changed files with 383 additions and 15 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue