reserved-memory: Introduce support for reserved-memory node

Introduce a set of header files to be able to define and declare
sections and regions in the linker script. Introduce also DT helpers to
retrieve data back.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
Carlo Caione 2021-05-17 17:31:35 +02:00 committed by Kumar Gala
commit ae2be2db8a
4 changed files with 226 additions and 0 deletions

View file

@ -33,6 +33,7 @@
#ifdef ZTEST_UNITTEST
#define DT_NODE_HAS_STATUS(node, status) 0
#else
#include <linker/devicetree_reserved.h>
#include <devicetree.h>
#endif
@ -213,6 +214,10 @@ extern char _image_rodata_size[];
extern char _vector_start[];
extern char _vector_end[];
#if DT_NODE_HAS_STATUS(_NODE_RESERVED, okay)
DT_RESERVED_MEM_SYMBOLS()
#endif
#ifdef CONFIG_SW_VECTOR_RELAY
extern char __vector_relay_table[];
#endif