diff mbox

[U-Boot] post, memorytest: fix if vstart is not = 0x0

Message ID 1306909447-19603-1-git-send-email-hs@denx.de
State Accepted
Commit 90ea60153606ef27eba52443410d4d4244695251
Headers show

Commit Message

Heiko Schocher June 1, 2011, 6:24 a.m. UTC
Signed-off-by: Heiko Schocher <hs@denx.de>
---
 post/drivers/memory.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

Comments

Wolfgang Denk July 27, 2011, 9:37 p.m. UTC | #1
Dear Heiko Schocher,

In message <1306909447-19603-1-git-send-email-hs@denx.de> you wrote:
> Signed-off-by: Heiko Schocher <hs@denx.de>
> ---
>  post/drivers/memory.c |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

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);
 			}
 		}