diff options
Diffstat (limited to 'include/link_defs.h')
-rw-r--r-- | include/link_defs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/link_defs.h b/include/link_defs.h index c12a350924..f27651691c 100644 --- a/include/link_defs.h +++ b/include/link_defs.h @@ -104,4 +104,11 @@ extern const void *__ro_end; extern const void *__data_start; extern const void *__data_end; +/* Helper for special chip-specific memory sections */ +#ifdef CONFIG_CHIP_MEMORY_REGIONS +#define __SECTION(name) __attribute__((section("." STRINGIFY(name) ".50_auto"))) +#else +#define __SECTION(name) +#endif /* CONFIG_MEMORY_REGIONS */ + #endif /* __CROS_EC_LINK_DEFS_H */ |