From: Heiko Schocher Date: Tue, 31 May 2011 20:24:05 +0000 (+0000) Subject: post, memorytest: fix if vstart is not = 0x0 X-Git-Tag: v2011.09-rc1~148 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=90ea60153606ef27eba52443410d4d4244695251;p=u-boot post, memorytest: fix if vstart is not = 0x0 Signed-off-by: Heiko Schocher --- diff --git a/post/drivers/memory.c b/post/drivers/memory.c index 4cca035784..8f46eef879 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); } }