Skip to content

Commit 3d3ffa2

Browse files
dcpleungkartben
authored andcommitted
soc: intel_adsp/ace30: do not map 0x0
The MMU mapping in SoC covers 0x0 which prevents catching NULL pointer accesses. Since there are no hardware registers at the very first page of memory, we move the starting point one page later. Signed-off-by: Daniel Leung <[email protected]>
1 parent e59289d commit 3d3ffa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soc/intel/intel_adsp/ace/mmu_ace30.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const struct xtensa_mmu_range xtensa_soc_mmu_ranges[] = {
126126
},
127127
{
128128
/* FIXME: definitely need more refinements... */
129-
.start = (uint32_t)0x0,
129+
.start = (uint32_t)0x1000,
130130
.end = (uint32_t)0x100000,
131131
.attrs = XTENSA_MMU_PERM_W,
132132
.name = "hwreg0",

0 commit comments

Comments
 (0)