2020-01-29 07:09:47 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018-2020 Atmosphère-NX
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms and conditions of the GNU General Public License,
|
|
|
|
* version 2, as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
* more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
#include <mesosphere.hpp>
|
|
|
|
|
|
|
|
namespace ams::kern {
|
|
|
|
|
|
|
|
NORETURN void HorizonKernelMain(s32 core_id) {
|
2020-01-29 23:26:24 +01:00
|
|
|
/* Setup the Core Local Region, and note that we're initializing. */
|
|
|
|
Kernel::Initialize(core_id);
|
|
|
|
Kernel::SetState(Kernel::State::Initializing);
|
|
|
|
|
|
|
|
/* Ensure that all cores get to this point before proceeding. */
|
2020-01-29 07:09:47 +01:00
|
|
|
cpu::SynchronizeAllCores();
|
2020-01-29 23:26:24 +01:00
|
|
|
|
|
|
|
/* TODO: Implement more of Main() */
|
2020-01-29 07:09:47 +01:00
|
|
|
while (true) { /* ... */ }
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|