From 793403c740d29d343fa1d566fdd8cde584e854ff Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Thu, 8 Dec 2022 08:50:21 +0100 Subject: [PATCH] lib/ramtest.c: Use {read,write}32p() Change-Id: I63abe019490f72bd73bcdbddb974aff2b2bfd803 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/70473 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/lib/ramtest.c | 4 ++-- 1 file 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); } /**