hos: improve warmboot config

Add more checks, simplify it and allow it to be called on non-HOS code.
This commit is contained in:
CTCaer
2022-10-11 08:53:46 +03:00
parent e455fe043f
commit a6d0bf54cd
3 changed files with 19 additions and 21 deletions

View File

@@ -904,7 +904,7 @@ int hos_launch(ini_sec_t *cfg)
}
// Configure and manage Warmboot binary.
if (!pkg1_warmboot_config(&ctxt, warmboot_base))
if (!pkg1_warmboot_config(&ctxt, warmboot_base, ctxt.pkg1_id->fuses, kb))
{
// Can only happen on T210B01.
_hos_crit_error("Failed to match warmboot with fuses!\nIf you continue, sleep wont work!");