Skip to content

Commit 4f84bd2

Browse files
committed
Fix reading marchid and mimpid
It seems to have been a copy-paste error. We ran into a very nasty bug in oreboot on the Allwinner D1 (C906) where an errata patch in Linux relies on those two being zero. Signed-off-by: Daniel Maslowski <[email protected]>
1 parent 6073fab commit 4f84bd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/register/marchid.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ impl Marchid {
1616
}
1717
}
1818

19-
read_csr!(0xF11);
19+
read_csr!(0xF12);
2020

2121
/// Reads the CSR
2222
#[inline]

src/register/mimpid.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ impl Mimpid {
1616
}
1717
}
1818

19-
read_csr!(0xF11);
19+
read_csr!(0xF13);
2020

2121
/// Reads the CSR
2222
#[inline]

0 commit comments

Comments
 (0)