]> git.sur5r.net Git - u-boot/commitdiff
post, memorytest: fix if vstart is not = 0x0
authorHeiko Schocher <hs@denx.de>
Tue, 31 May 2011 20:24:05 +0000 (20:24 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 27 Jul 2011 21:37:01 +0000 (23:37 +0200)
Signed-off-by: Heiko Schocher <hs@denx.de>
post/drivers/memory.c

index 4cca0357841a696b43a7952fb66d05ec0f9c2d75..8f46eef879003efbb271a6025f1d2dec1db5f9ef 100644 (file)
@@ -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);
                        }
                }