Skip to content

Commit 4de0c9a

Browse files
lyakhnashif
authored andcommitted
SoC: Intel: ADSP: ACE30: add .imrdata to MMU definitions
On ACE30 platforms adding a section to the linker script isn't enough, it should also be added to the xtensa_soc_mmu_ranges[] array. Signed-off-by: Guennadi Liakhovetski <[email protected]>
1 parent 5f4177b commit 4de0c9a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ SECTIONS {
170170
* .text.
171171
*/
172172
.imrdata : ALIGN(4096) {
173+
__imr_data_start = .;
173174
*(.imrdata .imrdata.*)
175+
__imr_data_end = .;
174176
} >imr
175177

176178
/* Cold code in IMR memory */

soc/intel/intel_adsp/ace/mmu_ace30.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ extern char __common_ram_region_start[];
2121
extern char __common_ram_region_end[];
2222
extern char __cold_start[];
2323
extern char __cold_end[];
24+
extern char __imr_data_start[];
25+
extern char __imr_data_end[];
2426
extern char __coldrodata_start[];
2527

2628

@@ -133,6 +135,12 @@ const struct xtensa_mmu_range xtensa_soc_mmu_ranges[] = {
133135
.end = (uint32_t)_imr_end,
134136
.name = "imr coldrodata",
135137
},
138+
{
139+
.start = (uint32_t)__imr_data_start,
140+
.end = (uint32_t)__imr_data_end,
141+
.attrs = XTENSA_MMU_PERM_W | XTENSA_MMU_CACHED_WB,
142+
.name = "imr data",
143+
},
136144
{
137145
.start = (uint32_t)IMR_L3_HEAP_BASE,
138146
.end = (uint32_t)(IMR_L3_HEAP_BASE + IMR_L3_HEAP_SIZE),

0 commit comments

Comments
 (0)