1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-22 18:06:40 +00:00

exo: Use exo new instead of fss ver for new versioning

This commit is contained in:
CTCaer 2020-06-15 10:57:15 +03:00
parent 9e48d64b27
commit 1369d66043
5 changed files with 4 additions and 6 deletions

View file

@ -148,7 +148,6 @@ int parse_fss(launch_ctxt_t *ctxt, const char *path, fss0_sept_t *sept_ctxt)
if (!sept_ctxt)
{
ctxt->atmosphere = true;
ctxt->fss0_ver = fss_meta->version;
ctxt->fss0_hosver = fss_meta->hos_ver;
}

View file

@ -989,7 +989,7 @@ int hos_launch(ini_sec_t *cfg)
// Config Exosphère if booting full Atmosphère.
if (ctxt.atmosphere && ctxt.secmon)
config_exosphere(&ctxt, warmboot_base);
config_exosphere(&ctxt, warmboot_base, exo_new);
// Unmount SD card and eMMC.
sd_end();

View file

@ -100,7 +100,6 @@ typedef struct _launch_ctxt_t
link_t kip1_list;
char* kip1_patches;
u32 fss0_ver;
u32 fss0_hosver;
bool svcperm;
bool debugmode;

View file

@ -141,7 +141,7 @@ typedef struct _atm_fatal_error_ctx
#define EXO_FW_VER(mj, mn, rv) (((mj) << 24) | ((mn) << 16) | ((rv) << 8))
void config_exosphere(launch_ctxt_t *ctxt, u32 warmboot_base)
void config_exosphere(launch_ctxt_t *ctxt, u32 warmboot_base, bool exo_new)
{
u32 exoFwNo = 0;
u32 exoFlags = 0;
@ -176,7 +176,7 @@ void config_exosphere(launch_ctxt_t *ctxt, u32 warmboot_base)
}
// New exosphere target versioning.
if (!ctxt->fss0_ver || ((ctxt->fss0_ver >> 8) > 0xC00)) // 0.12.0.
if (exo_new)
{
// Feed old versioning.
switch (exoFwNo)

View file

@ -19,7 +19,7 @@
#include <utils/types.h>
void config_exosphere(launch_ctxt_t *ctxt, u32 warmboot_base);
void config_exosphere(launch_ctxt_t *ctxt, u32 warmboot_base, bool exo_new);
void secmon_exo_check_panic();
#endif