From c6fb9c3d31117d5afb95ba0972a3679e6b38bf8c Mon Sep 17 00:00:00 2001 From: Vincent van der Locht Date: Fri, 10 Apr 2020 10:49:38 +0200 Subject: [PATCH] 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 Signed-off-by: Gerson Fernando Budke --- include/linker/section_tags.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linker/section_tags.h b/include/linker/section_tags.h index a578e8609d2..b0bfd6d5294 100644 --- a/include/linker/section_tags.h +++ b/include/linker/section_tags.h @@ -34,6 +34,8 @@ #if defined(CONFIG_NOCACHE_MEMORY) #define __nocache __in_section_unique(_NOCACHE_SECTION_NAME) +#else +#define __nocache #endif /* CONFIG_NOCACHE_MEMORY */ #endif /* !_ASMLANGUAGE */