[U-Boot] [PATCH] post, memorytest: fix if vstart is not = 0x0
Heiko Schocher
hs at denx.de
Wed Jun 1 08:24:05 CEST 2011
Signed-off-by: Heiko Schocher <hs at denx.de>
---
post/drivers/memory.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/post/drivers/memory.c b/post/drivers/memory.c
index 3f47449..b7943ef 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);
}
}
--
1.7.4.4
More information about the U-Boot
mailing list