[PATCH] riscv/start: Startup sequence update.

Hesham Almatary hesham.almatary at cl.cam.ac.uk
Fri Apr 30 13:32:19 UTC 2021


On Fri, 30 Apr 2021 at 14:22, Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> On 29/04/2021 20:53, Sebastian Huber wrote:
>
> > On 29/04/2021 20:18, Hesham Almatary wrote:
> >
> >>>> I would place the device tree in a noinit section.
> >>>>
> >>> That is probably a better solution.
> >>>
> >>> It should also be documented in this start.S file what are the
> >>> assumptions about parameters coming from the bootloader since it is
> >>> not obvious.
> >> +1
> >
> > The recent GCC have an attribute for this:
> >
> > https://devel.rtems.org/ticket/3866
> >
> > We just need support for this in linkcmds.base and an RTEMS_NOINIT in
> > basedefs.h.
>
> The noinit attributes is a bit broken in GCC:
>
I guess we can go for a separate custom section then? Or we can just assign
it a magic value so that it doesn’t go into BSS.


> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100357
>
> --
> embedded brains GmbH
> Herr Sebastian HUBER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: sebastian.huber at 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/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210430/3a72e295/attachment.html>


More information about the devel mailing list