Skip to content

Commit

Permalink
intel_adsp: ace: Fix heap in the linker
Browse files Browse the repository at this point in the history
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 <flavio.ceolin@intel.com>
  • Loading branch information
ceolin authored and nashif committed May 17, 2023
1 parent 9bf333a commit 706cfbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soc/xtensa/intel_adsp/ace/ace-link.ld
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ SECTIONS {
{
_heap_start = .;
*(.heap_mem)
_heap_end = .;
} >ucram

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

. = L2_SRAM_BASE + L2_SRAM_SIZE;
. = SEGSTART_UNCACHED;
_heap_end = .;
_heap_sentry = .;

/* dma buffers */
Expand Down

0 comments on commit 706cfbb

Please sign in to comment.