Thanks for your reply, but why the code is copied from 0x86b8b to 0x4000
(from dram to dram), is it excrescent? and why it is 0x4000 not other memory
address? Thanks!

Collins

/* copy data segment from FLASH ROM to RAM */
     leal EXT(_ldata), %esi
     leal EXT(_data), %edi
     movl $EXT(_eldata), %ecx
     subl %esi, %ecx
     jz   .Lnodata       /* should not happen */
     rep
     movsb
.Lnodata:
     intel_chip_post_macro(0x12)         /* post 12 */








[EMAIL PROTECTED] (Eric W. Biederman) on 2002-01-04 03:18:48
                                                                                
                                                                                
                                                                                


                                                              
                                                              
                                                              
 To:      Collins Chen/ALI_ZSZ/ACER@ACER                      
                                                              
 cc:      Ronald G Minnich <[EMAIL PROTECTED]>,               
          [EMAIL PROTECTED]                                  
                                                              
                                                              
                                                              
 Subject: Re: A question about crt0.S                         
                                                              








"Collins Chen" <"collins_chen"@ali.com.tw> writes:

> Dear Ron,
>      I have a qusetion when I read following code in crt0.S: I think these
code
> do copy from dram to dram, but the description said it copy from flash rom to
> dram. Is it my mistake? Thank you very much!

The flash rom is memory mapped.  This could be from dram to dram
on platforms using the DOC but otherwise the comment is correct.

Eric



Reply via email to