ams: use bitpack for api version

This commit is contained in:
Michael Scire committed 2020-01-02 18:17:48 -08:00
1 parent 59be817bb8
commit 3038612774
3 files changed
+28 -20

No files matched your search

@@ -26,13 +26,7 @@ namespace ams::exosphere {
R_ASSERT(ResultNotPresent());
}
return ApiInfo{
.major_version = static_cast<u32>((exosphere_cfg >> 0x20) & 0xFF),
.minor_version = static_cast<u32>((exosphere_cfg >> 0x18) & 0xFF),
.micro_version = static_cast<u32>((exosphere_cfg >> 0x10) & 0xFF),
.target_firmware = static_cast<TargetFirmware>((exosphere_cfg >> 0x08) & 0xFF),
.master_key_revision = static_cast<u32>((exosphere_cfg >> 0x00) & 0xFF),
};
return ApiInfo{ util::BitPack64(exosphere_cfg) };
}
void ForceRebootToRcm() {