Collins Chen wrote: > > Do you mean that the data is copied from DOC to dram? > But in ipl.S the linuxbios has copied from DOC to 0x80000(in dram), why in > crt0.S copy .data section from DOC to dram again? > I have seen .data section, it include some rcsid[ ], I don't know what use > it have. >
That is to be consistent with normal Flash cases. For normal flash, the code (.text) and read only data (.rodata) can be "in place" while the initialized data (.data) have to be copy from flash to DRAM. For DoC, the whole image (.text .data .rodata .etc .etc) is copy to DRAM by ipl.S The same .data copy code is used for both DoC and Flash, you can say it is redundant for DoC. Ollie
