mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-15 15:44:23 -04:00
exo2: fix bugs in Cmac and DeviceId calculation
This commit is contained in:
parent
bb3a8a888f
commit
a0b08d0540
2 changed files with 4 additions and 4 deletions
|
@ -200,7 +200,7 @@ namespace ams::fuse {
|
|||
|
||||
void GetEcid(br::BootEcid *out) {
|
||||
/* Get the registers. */
|
||||
const volatile auto &chip = GetChipRegisters();
|
||||
volatile auto &chip = GetChipRegisters();
|
||||
|
||||
/* Read the ecid components. */
|
||||
const u32 vendor = reg::Read(chip.FUSE_OPT_VENDOR_CODE) & ((1u << 4) - 1);
|
||||
|
@ -224,7 +224,7 @@ namespace ams::fuse {
|
|||
|
||||
u64 GetDeviceId() {
|
||||
/* Get the registers. */
|
||||
const volatile auto &chip = GetChipRegisters();
|
||||
volatile auto &chip = GetChipRegisters();
|
||||
|
||||
/* Read the device id components. */
|
||||
/* NOTE: Device ID is "basically" just an alternate encoding of Ecid. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue