exo2: cache soc type/hardware type for quick lookup

This commit is contained in:
Michael Scire 2020-05-16 16:34:59 -07:00 committed by SciresM
parent a0b08d0540
commit 99e0448f30
4 changed files with 38 additions and 3 deletions

View file

@ -245,7 +245,7 @@ namespace ams::secmon::boot {
void DeriveAllKeys() {
/* Determine whether we're prod. */
const bool is_prod = fuse::GetHardwareState() != fuse::HardwareState_Development;
const bool is_prod = IsProduction();
/* Get the ephemeral work block. */
u8 * const work_block = se::GetEphemeralWorkBlock();