<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">I have a question about post memory
test. According to the following code, even if memory size is greater than
256M, only 256M memory will be tested. Is it true or I missed something.
Thanks a lot. </font>
<br>
<br><font size=2 face="sans-serif">In U-BOOT-1.2.0 </font>
<br><font size=2 face="sans-serif">u-boot\post\drivers\memory.c,</font>
<br>
<br><font size=2 face="sans-serif">int memory_post_test (int flags)</font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif"> int
ret = 0;</font>
<br><font size=2 face="sans-serif"> DECLARE_GLOBAL_DATA_PTR;</font>
<br><font size=2 face="sans-serif"> bd_t
*bd = gd->bd;</font>
<br><font size=2 face="sans-serif"> unsigned
long memsize = </font><font size=2 color=blue face="sans-serif">(bd->bi_memsize
>= 256 << 20 ?</font>
<br><font size=2 color=blue face="sans-serif">
256 << 20 : bd->bi_memsize)
- (1 << 20);</font>
<br>
<br><font size=2 face="sans-serif"> if
(flags & POST_SLOWTEST) {</font>
<br><font size=2 face="sans-serif">
ret = memory_post_tests (CFG_SDRAM_BASE, memsize);</font>
<br><font size=2 face="sans-serif"> }
else {
/* POST_NORMAL */</font>
<br>
<br><font size=2 face="sans-serif">
unsigned long i;</font>
<br>
<br><font size=2 face="sans-serif">
for (i = 0; i < (memsize >> 20) &&
ret == 0; i++) {</font>
<br><font size=2 face="sans-serif">
if (ret
== 0)</font>
<br><font size=2 face="sans-serif">
ret = memory_post_tests (i << 20, 0x800);</font>
<br><font size=2 face="sans-serif">
if (ret
== 0)</font>
<br><font size=2 face="sans-serif">
ret = memory_post_tests ((i << 20) +
0xff800, 0x800);</font>
<br><font size=2 face="sans-serif">
}</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br><font size=2 face="sans-serif"> return
ret;</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">Best Regards</font>
<br><font size=2 face="sans-serif">dongy</font>
<br>
<br>
<br>
<br>