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:
parent
285bf097ab
commit
4b7d4054d9
|
@ -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)))
|
||||
;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue