Fix fcram boot bug (#864)

Fixed old bug that appeared regarding the fcram boot failing.
This commit is contained in:
Fra 2024-06-15 20:37:11 +02:00 committed by GitHub
parent dab90a9162
commit eee63dd155
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2539,6 +2539,9 @@ u32 GodMode(int entrypoint) {
if (bootloader) {
const char* bootfirm_paths[] = { BOOTFIRM_PATHS };
if (IsBootableFirm(firm_in_mem, FIRM_MAX_SIZE)) {
DeinitExtFS();
DeinitSDCardFS();
PXI_DoCMD(PXICMD_LEGACY_BOOT, NULL, 0);
PXI_Barrier(PXI_FIRMLAUNCH_BARRIER);
BootFirm(firm_in_mem, "sdmc:/bootonce.firm");
}