mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-14 15:14:23 -04:00
exo2: cache soc type/hardware type for quick lookup
This commit is contained in:
parent
a0b08d0540
commit
99e0448f30
4 changed files with 38 additions and 3 deletions
|
@ -94,6 +94,9 @@ namespace ams::secmon {
|
|||
/* If we don't have a valid storage context, we can just use the default one. */
|
||||
ctx.secmon_cfg = DefaultSecureMonitorConfiguration;
|
||||
}
|
||||
|
||||
/* Cache the fuse info for quick access. */
|
||||
ctx.secmon_cfg.SetFuseInfo();
|
||||
}
|
||||
|
||||
void GenerateSecurityEngineAesKeySlotTestVector(void *dst, size_t size) {
|
||||
|
@ -387,7 +390,7 @@ namespace ams::secmon {
|
|||
SLAVE_SECURITY_REG_BITS_ENUM(2, DDS, ENABLE),
|
||||
SLAVE_SECURITY_REG_BITS_ENUM(2, DP2, ENABLE));
|
||||
|
||||
const auto hw_type = fuse::GetHardwareType();
|
||||
const auto hw_type = GetHardwareType();
|
||||
|
||||
/* Switch Lite can't use HDMI, so set CEC to secure on hoag. */
|
||||
if (hw_type == fuse::HardwareType_Hoag) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue