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:
Elyes Haouas 2022-12-08 08:50:21 +01:00 committed by Felix Held
parent ca20fc3c6d
commit 793403c740
1 changed files with 2 additions and 2 deletions

View File

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