mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-07-15 08:32:42 +08:00
feat(make): add "iram_bss" to link some global varible from DRAM to IRAM
This commit is contained in:
@ -81,10 +81,22 @@ SECTIONS
|
||||
mapping[iram0_text]
|
||||
|
||||
_iram_text_end = ABSOLUTE(.);
|
||||
} > iram0_0_seg
|
||||
|
||||
.iram0.bss :
|
||||
{
|
||||
. = ALIGN (4);
|
||||
/* Code marked as runnning out of IRAM */
|
||||
_iram_bss_start = ABSOLUTE(.);
|
||||
|
||||
mapping[iram0_bss]
|
||||
|
||||
. = ALIGN (4);
|
||||
_iram_bss_end = ABSOLUTE(.);
|
||||
_iram_end = ABSOLUTE(.);
|
||||
} > iram0_0_seg
|
||||
|
||||
ASSERT(((_iram_text_end - ORIGIN(iram0_0_seg)) <= LENGTH(iram0_0_seg)),
|
||||
ASSERT(((_iram_end - ORIGIN(iram0_0_seg)) <= LENGTH(iram0_0_seg)),
|
||||
"IRAM0 segment data does not fit.")
|
||||
|
||||
.dram0.data :
|
||||
|
5
components/esp8266/ld/esp8266_bss_fragments.lf
Normal file
5
components/esp8266/ld/esp8266_bss_fragments.lf
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
[scheme:iram_bss]
|
||||
entries:
|
||||
bss -> iram0_bss
|
||||
common -> iram0_bss
|
Reference in New Issue
Block a user