fusee_cpp: various fixes, unpatched erista boots now

This commit is contained in:
Michael Scire 2021-09-04 21:43:19 -07:00 committed by SciresM
parent e5106ffa2c
commit 596f5c3f52
8 changed files with 1032 additions and 68 deletions

View file

@ -439,6 +439,9 @@ namespace ams::nxboot {
} else {
std::memcpy(warmboot_dst + 0x10, PkcModulusDevelopmentErista, sizeof(PkcModulusDevelopmentErista));
}
/* Set the target firmware. */
std::memcpy(warmboot_dst + 0x248, std::addressof(target_firmware), sizeof(target_firmware));
} else /* if (soc_type == fuse::SocType_Mariko) */ {
/* Declare path for mariko warmboot files. */
char warmboot_path[0x80] = "sdmc:/warmboot_mariko/wb_xx.bin";
@ -745,6 +748,9 @@ namespace ams::nxboot {
/* Setup the CPU to boot exosphere. */
SetupCpu(reinterpret_cast<uintptr_t>(exosphere_dst));
/* Initialize bootloader parameters. */
InitializeSecureMonitorMailbox();
/* Set our bootloader state. */
SetBootloaderState(pkg1::BootloaderState_LoadedBootConfig);