Skip to content

Commit

Permalink
llext: add a macro for read-only "cold" DRAM data
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lyakh committed Dec 11, 2024
1 parent 08e711a commit fa5d722
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/include/module/module/llext.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fa5d722

Please sign in to comment.