diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2022-12-08 08:50:21 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-12-10 00:01:05 +0000 |
commit | 793403c740d29d343fa1d566fdd8cde584e854ff (patch) | |
tree | a3ae736e1cf54a19cba5c12cb38dd26da37341f5 /src/lib | |
parent | ca20fc3c6d252215ba50990cb203af31a0e3cb59 (diff) | |
download | coreboot-793403c740d29d343fa1d566fdd8cde584e854ff.tar.gz coreboot-793403c740d29d343fa1d566fdd8cde584e854ff.tar.bz2 coreboot-793403c740d29d343fa1d566fdd8cde584e854ff.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ramtest.c b/src/lib/ramtest.c index 7ac141a39263..a3b252887898 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); } /** |