Skip to content

Commit d9f643d

Browse files
dcpleungcarlescufi
authored andcommitted
xtensa: mmu: do not map heap if not using heap
Do not map the heap area by default if we are not using heap at all. Signed-off-by: Daniel Leung <[email protected]>
1 parent 9a33c40 commit d9f643d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/xtensa/core/xtensa_mmu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ static const struct xtensa_mmu_range mmu_zephyr_ranges[] = {
133133
#endif
134134
.name = "data",
135135
},
136+
#if CONFIG_HEAP_MEM_POOL_SIZE > 0
136137
/* System heap memory */
137138
{
138139
.start = (uint32_t)_heap_start,
@@ -144,6 +145,7 @@ static const struct xtensa_mmu_range mmu_zephyr_ranges[] = {
144145
#endif
145146
.name = "heap",
146147
},
148+
#endif
147149
/* Mark text segment cacheable, read only and executable */
148150
{
149151
.start = (uint32_t)__text_region_start,

0 commit comments

Comments
 (0)