[PATCH] bsp: Use RTEMS_NOINIT for bsp_fdt_blob

Sebastian Huber sebastian.huber at embedded-brains.de
Sun May 2 18:47:04 UTC 2021


This makes it possible to copy a boot loader provided device tree to
bsp_fdt_blob before the BSS section is cleared to zero.  The
disadvantage is that bsp_fdt_blob contains now uninitialized data.
---
 bsps/shared/start/bsp-fdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsps/shared/start/bsp-fdt.c b/bsps/shared/start/bsp-fdt.c
index 50a485eb16..9cd46e5927 100644
--- a/bsps/shared/start/bsp-fdt.c
+++ b/bsps/shared/start/bsp-fdt.c
@@ -32,7 +32,7 @@ static const uint32_t
 bsp_fdt_blob[BSP_FDT_BLOB_SIZE_MAX / sizeof(uint32_t)] CPU_STRUCTURE_ALIGNMENT =
   { 0xdeadbeef };
 #else
-static uint32_t
+RTEMS_NOINIT static uint32_t
 bsp_fdt_blob[BSP_FDT_BLOB_SIZE_MAX / sizeof(uint32_t)] CPU_STRUCTURE_ALIGNMENT;
 #endif
 
-- 
2.26.2



More information about the devel mailing list