mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-15 22:44:19 +00:00
Merge branch 'master' into feature/esp32s2beta_merge
This commit is contained in:
@@ -30,7 +30,7 @@ extern soc_reserved_region_t soc_reserved_memory_region_end;
|
||||
These variables have the start and end of the data and static IRAM
|
||||
area used by the program. Defined in the linker script.
|
||||
*/
|
||||
extern int _data_start, _static_data_end, _iram_start, _iram_end;
|
||||
extern int _data_start, _heap_start, _iram_start, _iram_end;
|
||||
|
||||
/* static DRAM & IRAM chunks */
|
||||
static const size_t EXTRA_RESERVED_REGIONS = 2;
|
||||
@@ -68,8 +68,8 @@ static void s_prepare_reserved_regions(soc_reserved_region_t *reserved, size_t c
|
||||
(count - EXTRA_RESERVED_REGIONS) * sizeof(soc_reserved_region_t));
|
||||
|
||||
/* Add the EXTRA_RESERVED_REGIONS at the beginning */
|
||||
reserved[0].start = (intptr_t)&_data_start; /* DRAM used by data+bss */
|
||||
reserved[0].end = (intptr_t)&_static_data_end;
|
||||
reserved[0].start = (intptr_t)&_data_start; /* DRAM used by data+bss and possibly rodata */
|
||||
reserved[0].end = (intptr_t)&_heap_start;
|
||||
#if CONFIG_IDF_TARGET_ESP32
|
||||
//ESP32 has a IRAM-only region 0x4008_0000 - 0x4009_FFFF, protect the used part
|
||||
reserved[1].start = (intptr_t)&_iram_start; /* IRAM used by code */
|
||||
|
Reference in New Issue
Block a user