esp_system: Rename _init_start symbol to _vector_table

This commit is contained in:
Angus Gratton
2020-12-22 18:41:43 +11:00
parent cfbded2ea1
commit 55155c3f82
4 changed files with 6 additions and 6 deletions

View File

@@ -132,7 +132,7 @@ SECTIONS
{ {
_iram_start = ABSOLUTE(.); _iram_start = ABSOLUTE(.);
/* Vectors go to IRAM */ /* Vectors go to IRAM */
_init_start = ABSOLUTE(.); _vector_table = ABSOLUTE(.);
/* Vectors according to builds/RF-2015.2-win32/esp108_v1_2_s5_512int_2/config.html */ /* Vectors according to builds/RF-2015.2-win32/esp108_v1_2_s5_512int_2/config.html */
. = 0x0; . = 0x0;
KEEP(*(.WindowVectors.text)); KEEP(*(.WindowVectors.text));

View File

@@ -138,7 +138,7 @@ SECTIONS
{ {
_iram_start = ABSOLUTE(.); _iram_start = ABSOLUTE(.);
/* Vectors go to IRAM */ /* Vectors go to IRAM */
_init_start = ABSOLUTE(.); _vector_table = ABSOLUTE(.);
/* Vectors according to builds/RF-2015.2-win32/esp108_v1_2_s5_512int_2/config.html */ /* Vectors according to builds/RF-2015.2-win32/esp108_v1_2_s5_512int_2/config.html */
. = 0x0; . = 0x0;
KEEP(*(.WindowVectors.text)); KEEP(*(.WindowVectors.text));

View File

@@ -134,7 +134,7 @@ SECTIONS
{ {
_iram_start = ABSOLUTE(.); _iram_start = ABSOLUTE(.);
/* Vectors go to IRAM */ /* Vectors go to IRAM */
_init_start = ABSOLUTE(.); _vector_table = ABSOLUTE(.);
. = 0x0; . = 0x0;
KEEP(*(.WindowVectors.text)); KEEP(*(.WindowVectors.text));
. = 0x180; . = 0x180;

View File

@@ -98,7 +98,7 @@ extern int _bss_end;
extern int _rtc_bss_start; extern int _rtc_bss_start;
extern int _rtc_bss_end; extern int _rtc_bss_end;
extern int _init_start; extern int _vector_table;
static const char *TAG = "cpu_start"; static const char *TAG = "cpu_start";
@@ -131,7 +131,7 @@ void startup_resume_other_cores(void)
void IRAM_ATTR call_start_cpu1(void) void IRAM_ATTR call_start_cpu1(void)
{ {
cpu_hal_set_vecbase(&_init_start); cpu_hal_set_vecbase(&_vector_table);
ets_set_appcpu_boot_addr(0); ets_set_appcpu_boot_addr(0);
@@ -261,7 +261,7 @@ void IRAM_ATTR call_start_cpu0(void)
#endif #endif
// Move exception vectors to IRAM // Move exception vectors to IRAM
cpu_hal_set_vecbase(&_init_start); cpu_hal_set_vecbase(&_vector_table);
rst_reas[0] = rtc_get_reset_reason(0); rst_reas[0] = rtc_get_reset_reason(0);
#if !CONFIG_ESP_SYSTEM_SINGLE_CORE_MODE #if !CONFIG_ESP_SYSTEM_SINGLE_CORE_MODE