Commit 45203b5c authored by Henrik Brix Andersen's avatar Henrik Brix Andersen Committed by Josh Lilly
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>
(cherry picked from commit afe1ca68)
parent 9242edc1
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
@@ -45,8 +45,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)