Skip to content

Commit 706cfbb

Browse files
Flavio Ceolinnashif
authored andcommitted
intel_adsp: ace: Fix heap in the linker
The end of the heap should be the same as _heap_sentry. The current end marker just covers the range of memory that is explicitly put in .heap_memand not account until the end of L2_SRAM_BASE + L2_SRAM_SIZE memory. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent 9bf333a commit 706cfbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ SECTIONS {
395395
{
396396
_heap_start = .;
397397
*(.heap_mem)
398-
_heap_end = .;
399398
} >ucram
400399

401400
.unused_ram_start_marker SEGSTART_CACHED (NOLOAD) :
@@ -408,6 +407,7 @@ SECTIONS {
408407

409408
. = L2_SRAM_BASE + L2_SRAM_SIZE;
410409
. = SEGSTART_UNCACHED;
410+
_heap_end = .;
411411
_heap_sentry = .;
412412

413413
/* dma buffers */

0 commit comments

Comments
 (0)