boot.s data initialization doubt

Posted by Nobody/Anonymous on March 27, 2006
In boot.s of ARM_LPC2106_GCC, why is there a code to overwrite the __data_beg__ with __data_beg_src__ data during initialization of the data in data segment.

RE: boot.s data initialization doubt

Posted by Nobody/Anonymous on March 27, 2006
I dont know the code but here is my guess.

data_beg will be the RAM location that will hold initialised data. The values to which this data will be set will be in flash at location data_beg_src. The values are therefor copied from data_beg_src into the variables at data_beg.