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>
This commit is contained in:
Elyes Haouas 2022-12-03 13:24:03 +01:00 committed by Felix Held
parent 285bf097ab
commit 4b7d4054d9
1 changed files with 2 additions and 2 deletions

View File

@ -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)))
;
}