summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-12-08 08:50:21 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-12-10 00:01:05 +0000
commit793403c740d29d343fa1d566fdd8cde584e854ff (patch)
treea3ae736e1cf54a19cba5c12cb38dd26da37341f5 /src/lib
parentca20fc3c6d252215ba50990cb203af31a0e3cb59 (diff)
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>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ramtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ramtest.c b/src/lib/ramtest.c
index 7ac141a392..a3b2528878 100644
--- a/src/lib/ramtest.c
+++ b/src/lib/ramtest.c
@@ -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);
}
/**