[PATCH] riscv/start: Startup sequence update.

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Apr 30 13:34:45 UTC 2021


On 30/04/2021 15:32, Hesham Almatary wrote:

>     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.

I propose to add something like this:

+/* Generated from spec:/rtems/basedefs/if/noinit */
+
+/**
+ * @ingroup RTEMSAPIBaseDefs
+ *
+ * @brief Instructs the compiler to place the variable in a section 
which is
+ *   not initialized.
+ */
+#define RTEMS_NOINIT RTEMS_SECTION( ".noinit" )

I work currently on a support for this in the linker command files.

-- 
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/



More information about the devel mailing list