summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--post/drivers/memory.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/post/drivers/memory.c b/post/drivers/memory.c
index 69973c0f442..d25e3235ca1 100644
--- a/post/drivers/memory.c
+++ b/post/drivers/memory.c
@@ -466,10 +466,11 @@ static int memory_post_test_regions(unsigned long start, unsigned long size)
for (i = 0; i < (size >> 20) && (!ret); i++) {
if (!ret)
- ret = memory_post_test_patterns(i << 20, 0x800);
- if (!ret)
- ret = memory_post_test_patterns((i << 20) + 0xff800,
+ ret = memory_post_test_patterns(start + (i << 20),
0x800);
+ if (!ret)
+ ret = memory_post_test_patterns(start + (i << 20) +
+ 0xff800, 0x800);
}
return ret;