Skip to content

Commit c818bfa

Browse files
committed
platform: ace40: add support for cold data and code
Required changes to enable CONFIG_COLD_STORE_EXECUTE_DRAM for ACE 4.0 nvl.toml.h -> add COLD module.entry novalake memory.h -> add __cold define support Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
1 parent 4d898ff commit c818bfa

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/platform/novalake/include/platform/lib/memory.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@
5656
*/
5757
#define HEAPMEM_SIZE CONFIG_SOF_ZEPHYR_HEAP_SIZE
5858

59+
#if CONFIG_COLD_STORE_EXECUTE_DRAM && \
60+
(CONFIG_LLEXT_TYPE_ELF_RELOCATABLE || !defined(LL_EXTENSION_BUILD))
61+
#define __cold __section(".cold")
62+
#define __cold_rodata __section(".coldrodata")
63+
#endif
64+
5965
#endif /* __PLATFORM_LIB_MEMORY_H__ */
6066

6167
#else

tools/rimage/config/nvl.toml.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ auto_start = "0"
1212

1313
index = __COUNTER__
1414

15+
#if CONFIG_COLD_STORE_EXECUTE_DRAM
16+
[[module.entry]]
17+
name = "COLD"
18+
uuid = UUIDREG_STR_COLD
19+
affinity_mask = "3"
20+
instance_count = "1"
21+
domain_types = "0"
22+
load_type = "0"
23+
module_type = "0"
24+
auto_start = "0"
25+
26+
index = __COUNTER__
27+
#endif
28+
1529
[[module.entry]]
1630
name = "BASEFW"
1731
uuid = "0E398C32-5ADE-BA4B-93B1-C50432280EE4"

0 commit comments

Comments
 (0)