Skip to content

Commit 0fe396c

Browse files
softwareckifabiobaltieri
authored andcommitted
ace: mmu: Add shared heap section
Add a new shared_heap section. Update the xtensa_soc_mmu_ranges structure to include a new memory range for the shared heap. Signed-off-by: Adrian Warecki <[email protected]>
1 parent 223d23a commit 0fe396c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

soc/intel/intel_adsp/ace/ace-link.ld

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,9 @@ SECTIONS {
499499
/* Heap start and end markers. Used to reserve system heap memory. */
500500
.heap_mem SEGSTART_UNCACHED (NOLOAD) :
501501
{
502+
_shared_heap_start = .;
503+
*(.shared_heap_mem)
504+
_shared_heap_end = .;
502505
_heap_start = .;
503506
*(.heap_mem)
504507
} >ucram

soc/intel/intel_adsp/ace/mmu_ace30.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ extern char __cold_end[];
2424
extern char __imr_data_start[];
2525
extern char __imr_data_end[];
2626
extern char __coldrodata_start[];
27+
extern char _shared_heap_start[];
28+
extern char _shared_heap_end[];
2729

2830

2931
const struct xtensa_mmu_range xtensa_soc_mmu_ranges[] = {
@@ -153,6 +155,12 @@ const struct xtensa_mmu_range xtensa_soc_mmu_ranges[] = {
153155
.attrs = XTENSA_MMU_PERM_W | XTENSA_MMU_CACHED_WB,
154156
.name = "lpsram",
155157
},
158+
{
159+
.start = (uint32_t)_shared_heap_start,
160+
.end = (uint32_t)_shared_heap_end,
161+
.attrs = XTENSA_MMU_PERM_W | XTENSA_MMU_CACHED_WB | XTENSA_MMU_MAP_SHARED,
162+
.name = "shared heap",
163+
},
156164
{
157165
.start = (uint32_t)(ADSP_L1CC_ADDR),
158166
.end = (uint32_t)(ADSP_L1CC_ADDR + CONFIG_MMU_PAGE_SIZE),

0 commit comments

Comments
 (0)