From e1aa9833c1eb80c193d1b7d7effe27140e1df154 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Sat, 23 Mar 2019 10:00:31 +0200 Subject: lib/ramtest: Fix ram_check() declarations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For a long time, second parameter 'stop' has been ignored. The tested range is within 1 MiB above 'start'. Change-Id: Icbf94cd6a651fbf0cd9aab97eb11f9b03f0c3c31 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/48561 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/lib/ramtest.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib') diff --git a/src/lib/ramtest.c b/src/lib/ramtest.c index c6cd7a4a1d..224393f6f0 100644 --- a/src/lib/ramtest.c +++ b/src/lib/ramtest.c @@ -67,7 +67,7 @@ static inline void test_pattern(unsigned short int idx, * * @param start System memory offset, aligned to 128bytes */ -static int ram_bitset_nodie(unsigned long start) +static int ram_bitset_nodie(uintptr_t start) { unsigned long addr, value, value2; unsigned short int idx; @@ -117,7 +117,7 @@ static int ram_bitset_nodie(unsigned long start) } -void ram_check(unsigned long start, unsigned long stop) +void ram_check(uintptr_t start) { /* * This is much more of a "Is my DRAM properly configured?" @@ -131,7 +131,7 @@ void ram_check(unsigned long start, unsigned long stop) } -int ram_check_nodie(unsigned long start, unsigned long stop) +int ram_check_nodie(uintptr_t start) { int ret; /* @@ -146,7 +146,7 @@ int ram_check_nodie(unsigned long start, unsigned long stop) return ret; } -int ram_check_noprint_nodie(unsigned long start, unsigned long stop) +int ram_check_noprint_nodie(uintptr_t start) { unsigned long addr, value, value2; unsigned short int idx; -- cgit v1.2.3