include: linker: section_tags.h: Add __nocache fallback

Some drivers support NOCACHE_MEMORY sections. To have a default
fallback for systems where this isn't available or disabled a
fallback define is added.

Signed-off-by: Vincent van der Locht <vincent@vlotech.nl>
Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
Vincent van der Locht 2020-04-10 10:49:38 +02:00 committed by Jukka Rissanen
commit c6fb9c3d31

View file

@ -34,6 +34,8 @@
#if defined(CONFIG_NOCACHE_MEMORY) #if defined(CONFIG_NOCACHE_MEMORY)
#define __nocache __in_section_unique(_NOCACHE_SECTION_NAME) #define __nocache __in_section_unique(_NOCACHE_SECTION_NAME)
#else
#define __nocache
#endif /* CONFIG_NOCACHE_MEMORY */ #endif /* CONFIG_NOCACHE_MEMORY */
#endif /* !_ASMLANGUAGE */ #endif /* !_ASMLANGUAGE */