On 08/06/2021 20:18, Jiri Gaisler wrote:
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).
Thanks for the background information. I added it to the commit message:
https://git.rtems.org/rtems/commit/?id=07f6a61d034d715e0340b6ffcffffa6dc6034662
--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax: +49-89-18 94 741 - 08
Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel