From 4b7d4054d9194647c30467a73b7ebc29d740b5b9 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sat, 3 Dec 2022 13:24:03 +0100 Subject: nb/intel/sandybridge: Use read{8,32}p() Change-Id: I3bbb2f02a2dc182956deffc554a6b161a93ad963 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/70285 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/northbridge/intel/sandybridge/raminit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/northbridge/intel/sandybridge/raminit.c b/src/northbridge/intel/sandybridge/raminit.c index 5044512ead..7beaa9bc95 100644 --- a/src/northbridge/intel/sandybridge/raminit.c +++ b/src/northbridge/intel/sandybridge/raminit.c @@ -31,11 +31,11 @@ static void wait_txt_clear(void) 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))) ; } -- cgit v1.2.3