fix(heap): Update the heap memory layout on esp32p4 target

- fix the value of SOC_ROM_STACK_START in soc.h
- Update the memory usage of ROM bootloader appendix in bootloader.ld
- Update the soc_memory_regions table to minimize the number of regions
  created after the startup stack is added back as a heap.
This commit is contained in:
Guillaume Souchere
2023-10-26 09:41:53 +02:00
parent 365123dfaa
commit fd2b8b5eb3
4 changed files with 26 additions and 28 deletions

View File

@@ -71,8 +71,7 @@ static void s_prepare_reserved_regions(soc_reserved_region_t *reserved, size_t c
/* Get the ROM layout to find which part of DRAM is reserved */
const ets_rom_layout_t *layout = ets_rom_layout_p;
reserved[0].start = (intptr_t)layout->dram0_rtos_reserved_start;
#if CONFIG_IDF_TARGET_ESP32P4
//TODO: IDF-7921
#ifdef SOC_DIRAM_ROM_RESERVE_HIGH
reserved[0].end = SOC_DIRAM_ROM_RESERVE_HIGH;
#else
reserved[0].end = SOC_DIRAM_DRAM_HIGH;