commit | 4b7d4054d9194647c30467a73b7ebc29d740b5b9 | [log] [tgz] |
---|---|---|
author | Elyes Haouas <ehaouas@noos.fr> | Sat Dec 03 13:24:03 2022 +0100 |
committer | Felix Held <felix-coreboot@felixheld.de> | Tue Dec 06 19:44:26 2022 +0000 |
tree | 12a052892825f0c76671af659ad95b988b1c680f | |
parent | 285bf097abc57f8e6ab8f99fd4d3f69193b2003b [diff] |
nb/intel/sandybridge: Use read{8,32}p() Change-Id: I3bbb2f02a2dc182956deffc554a6b161a93ad963 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70285 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
diff --git a/src/northbridge/intel/sandybridge/raminit.c b/src/northbridge/intel/sandybridge/raminit.c index 5044512..7beaa9b 100644 --- a/src/northbridge/intel/sandybridge/raminit.c +++ b/src/northbridge/intel/sandybridge/raminit.c
@@ -31,11 +31,11 @@ return; /* Some TXT public bit */ - if (!(read32((void *)0xfed30010) & 1)) + if (!(read32p(0xfed30010) & 1)) return; /* Wait for TXT clear */ - while (!(read8((void *)0xfed40000) & (1 << 7))) + while (!(read8p(0xfed40000) & (1 << 7))) ; }