Commit afe1ca68 authored by Henrik Brix Andersen's avatar Henrik Brix Andersen Committed by Carles Cufi
Browse files

linker: allow tagging variables with __nocache_noinit

Allow tagging variables with __nocach_noinit.

With CONFIG_NOCACHE_MEMORY=y, this will resolve to __nocache, which implies
__noinit. With CONFIG_NOCACHE_MEMORY=n, this simply resolves to __noinit.

Signed-off-by: default avatarHenrik Brix Andersen <hebad@vestas.com>
parent c9da6829
Loading
Loading
Loading
Loading
+2 −0
Changes for include/zephyr/linker/section_tags.h: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -49,8 +49,10 @@

#if defined(CONFIG_NOCACHE_MEMORY)
#define __nocache __in_section_unique(_NOCACHE_SECTION_NAME)
#define __nocache_noinit __nocache
#else
#define __nocache
#define __nocache_noinit __noinit
#endif /* CONFIG_NOCACHE_MEMORY */

#if defined(CONFIG_KERNEL_COHERENCE)