boot2: move to separate process

This commit is contained in:
Michael Scire 2019-10-18 21:06:40 -07:00 committed by SciresM
parent 535e49a38d
commit 6abd756e0c
14 changed files with 427 additions and 31 deletions

View file

@ -15,6 +15,7 @@
*/
#include <atomic>
#include <stratosphere/boot2.hpp>
#include <stratosphere/spl.hpp>
#include <stratosphere/ldr/ldr_pm_api.hpp>
#include <stratosphere/sm/sm_manager_api.hpp>
@ -24,8 +25,6 @@
#include "pm_process_info.hpp"
#include "../boot2/boot2_api.hpp"
namespace sts::pm::impl {
namespace {
@ -732,7 +731,7 @@ namespace sts::pm::impl {
Result NotifyBootFinished() {
static bool g_has_boot_finished = false;
if (!g_has_boot_finished) {
boot2::LaunchBootPrograms();
boot2::LaunchPreSdCardBootProgramsAndBoot2();
g_has_boot_finished = true;
g_boot_finished_event.Signal();
}