mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-16 04:22:22 +00:00
Merge branch 'refactor/hal_function_set_exception_vector_table' into 'master'
soc: add hal api to set exception vector table base address See merge request espressif/esp-idf!7905
This commit is contained in:
@@ -130,10 +130,8 @@ void IRAM_ATTR call_start_cpu0(void)
|
||||
|
||||
bootloader_init_mem();
|
||||
|
||||
//Move exception vectors to IRAM
|
||||
asm volatile (\
|
||||
"wsr %0, vecbase\n" \
|
||||
::"r"(&_init_start));
|
||||
// Move exception vectors to IRAM
|
||||
cpu_hal_set_vecbase(&_init_start);
|
||||
|
||||
rst_reas[0] = rtc_get_reset_reason(0);
|
||||
|
||||
@@ -273,9 +271,8 @@ static void wdt_reset_cpu1_info_enable(void)
|
||||
|
||||
void IRAM_ATTR call_start_cpu1(void)
|
||||
{
|
||||
asm volatile (\
|
||||
"wsr %0, vecbase\n" \
|
||||
::"r"(&_init_start));
|
||||
// Move exception vectors to IRAM
|
||||
cpu_hal_set_vecbase(&_init_start);
|
||||
|
||||
ets_set_appcpu_boot_addr(0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user