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:
parent
f765e2300d
commit
c6fb9c3d31
1 changed files with 2 additions and 0 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue