summaryrefslogtreecommitdiff
path: root/post/drivers
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2011-05-31 20:24:05 +0000
committerWolfgang Denk <wd@denx.de>2011-07-27 23:37:01 +0200
commit90ea60153606ef27eba52443410d4d4244695251 (patch)
treedbb6cc30cd2778ccee85f3d61630b2e28baa6e31 /post/drivers
parentaf5de5d772ca8b564e3c21e637928aeef399b5ae (diff)
post, memorytest: fix if vstart is not = 0x0
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'post/drivers')
-rw-r--r--post/drivers/memory.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/post/drivers/memory.c b/post/drivers/memory.c
index 4cca0357841..8f46eef8790 100644
--- a/post/drivers/memory.c
+++ b/post/drivers/memory.c
@@ -500,9 +500,10 @@ int memory_post_test(int flags)
unsigned long i;
for (i = 0; i < (memsize >> 20) && ret == 0; i++) {
if (ret == 0)
- ret = memory_post_tests(i << 20, 0x800);
+ ret = memory_post_tests(vstart +
+ (i << 20), 0x800);
if (ret == 0)
- ret = memory_post_tests(
+ ret = memory_post_tests(vstart +
(i << 20) + 0xff800, 0x800);
}
}