lib/ramtest.c: Use {read,write}32p()
Change-Id: I63abe019490f72bd73bcdbddb974aff2b2bfd803 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70473 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
parent
ca20fc3c6d
commit
793403c740
|
@ -24,7 +24,7 @@ static void phys_memory_barrier(void)
|
|||
#else
|
||||
static void write_phys(uintptr_t addr, u32 value)
|
||||
{
|
||||
write32((void *)addr, value);
|
||||
write32p(addr, value);
|
||||
}
|
||||
|
||||
static void phys_memory_barrier(void)
|
||||
|
@ -35,7 +35,7 @@ static void phys_memory_barrier(void)
|
|||
|
||||
static u32 read_phys(uintptr_t addr)
|
||||
{
|
||||
return read32((void *)addr);
|
||||
return read32p(addr);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue