xtensa/esp_allocateheap.c: Correct ROM memory boundries.

SMP was broken because the ROM memory wasn't set correctly.  Some
regions were shared with the ROM code.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
Abdelatif Guettouche 2021-01-20 10:30:15 +01:00 committed by Alan Carvalho de Assis
parent a4a2d5ff7d
commit c87e5965b7

View File

@ -58,7 +58,7 @@
* script as "_sheap". Then end is defined here, as follows:
*/
#define HEAP_REGION1_END 0x3ffe0000
#define HEAP_REGION1_END 0x3ffdfff0
/* Region 2 of the heap is the area from the end of the ROM data to the end
* of DRAM. The linker script has already set "_eheap" as the end of DRAM,
@ -67,10 +67,10 @@
* enabled include APP's region with the heap.
*/
#ifdef CONFIG_SMP
# define HEAP_REGION2_START 0x3ffe4350
#ifndef CONFIG_SMP
# define HEAP_REGION2_START 0x3ffe1330
#else
# define HEAP_REGION2_START 0x3ffe0400
# define HEAP_REGION2_START 0x3ffe7e40
#endif
/****************************************************************************