On 6/8/21 4:14 PM, Sebastian Huber wrote:
On 08/06/2021 16:03, Gedare Bloom wrote:
I guess at
some time, loading initialized data from the ROM was needed, but now
it is not?
I asked about this some time ago. I think these days the RTEMS application is
always loaded by a boot loader (GRMON). If the data copy is really necessary,
then an application can still add this step as a very early system
initialization step, since boot_card() and the system initialization loop
doesn't use global data (only read-only and BSS data). However, the SMP startup
would still not work in this case. A boot loader is a better place to load the
sections.
The code is an artifact from the old erc32 days, when we would boot and execute
from ROM and the .data had to be copied over to RAM. With leon1/2/3, this is
not used anymore as a boot loader is made from the RAM image using a custom
tool (mkprom).
Jiri.
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel