Skip to content

Commit

Permalink
post, memorytest: fix if vstart is not = 0x0
Browse files Browse the repository at this point in the history
Signed-off-by: Heiko Schocher <[email protected]>
  • Loading branch information
hsdenx authored and wdenx committed Jul 27, 2011
1 parent af5de5d commit 90ea601
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions post/drivers/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 90ea601

Please sign in to comment.