From fa5d722af91862e4ed91327eb867d96b08441ffc Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Wed, 11 Dec 2024 15:47:18 +0200 Subject: [PATCH] llext: add a macro for read-only "cold" DRAM data This adds a __cold_data macro, that can be used to designate read- only data to be kept in DRAM. Signed-off-by: Guennadi Liakhovetski --- src/include/module/module/llext.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/include/module/module/llext.h b/src/include/module/module/llext.h index f8477fe7d9b3..1325700ed3a6 100644 --- a/src/include/module/module/llext.h +++ b/src/include/module/module/llext.h @@ -36,8 +36,10 @@ static const struct sof_module_api_build_info buildinfo __section(".mod_buildinf #if CONFIG_LLEXT_TYPE_ELF_RELOCATABLE && defined(LL_EXTENSION_BUILD) #define __cold __section(".text.dram") +#define __cold_data __section(".rodata.dram") #else #define __cold +#define __cold_data #endif #endif