mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-10-22 16:59:19 +08:00
feat: Add fm25q16a patch
This commit is contained in:
@@ -94,6 +94,15 @@ SECTIONS
|
||||
_iram_end = ABSOLUTE(.);
|
||||
} > iram0_0_seg
|
||||
|
||||
.patch.text :
|
||||
{
|
||||
. = ALIGN (4);
|
||||
_iram_patch_text_start = ABSOLUTE(.);
|
||||
*(.flash.patch.literal .flash.patch.text)
|
||||
_iram_patch_text_end = ABSOLUTE(.);
|
||||
_iram_text_end = ABSOLUTE(.);
|
||||
} > iram0_0_seg
|
||||
|
||||
ASSERT(((_iram_end - ORIGIN(iram0_0_seg)) <= LENGTH(iram0_0_seg)),
|
||||
"IRAM0 segment data does not fit.")
|
||||
|
||||
@@ -155,6 +164,15 @@ SECTIONS
|
||||
_bss_end = ABSOLUTE(.);
|
||||
} > dram0_0_seg
|
||||
|
||||
.patch.bss :
|
||||
{
|
||||
. = ALIGN (4);
|
||||
_iram_patch_bss_start = ABSOLUTE(.);
|
||||
*(.flash.patch.bss)
|
||||
_iram_patch_bss_end = ABSOLUTE(.);
|
||||
*(.flash.patch.rodata)
|
||||
} > dram0_0_seg
|
||||
|
||||
ASSERT(((_bss_end - ORIGIN(dram0_0_seg)) <= LENGTH(dram0_0_seg)),
|
||||
"DRAM segment data does not fit.")
|
||||
|
||||
|
@@ -93,10 +93,6 @@ static void user_init_entry(void *param)
|
||||
esp_set_cpu_freq(ESP_CPU_FREQ_160M);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ENABLE_TH25Q16HB_PATCH_0
|
||||
assert(th25q16hb_apply_patch_0() == 0);
|
||||
#endif
|
||||
|
||||
app_main();
|
||||
|
||||
vTaskDelete(NULL);
|
||||
@@ -109,6 +105,7 @@ void call_start_cpu(size_t start_addr)
|
||||
|
||||
extern int _bss_start, _bss_end;
|
||||
extern int _iram_bss_start, _iram_bss_end;
|
||||
extern int _iram_patch_bss_start, _iram_patch_bss_end;
|
||||
|
||||
#ifdef CONFIG_BOOTLOADER_FAST_BOOT
|
||||
REG_SET_BIT(DPORT_CTL_REG, DPORT_CTL_DOUBLE_CLK);
|
||||
@@ -155,6 +152,18 @@ void call_start_cpu(size_t start_addr)
|
||||
for (p = &_iram_bss_start; p < &_iram_bss_end; p++)
|
||||
*p = 0;
|
||||
|
||||
|
||||
for (p = &_iram_patch_bss_start; p < &_iram_patch_bss_end; p++)
|
||||
*p = 0;
|
||||
|
||||
#ifdef CONFIG_ENABLE_TH25Q16HB_PATCH_0
|
||||
assert(th25q16hb_apply_patch_0() == 0);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ENABLE_FM25Q16A_PATCH_0
|
||||
assert(fm25q16a_apply_patch_0() == 0);
|
||||
#endif
|
||||
|
||||
__asm__ __volatile__(
|
||||
"rsil a2, 2\n"
|
||||
"movi a1, _chip_interrupt_tmp\n"
|
||||
|
Reference in New Issue
Block a user