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:
Angus Gratton
2020-03-11 14:44:42 +08:00
6 changed files with 29 additions and 12 deletions

View File

@@ -114,10 +114,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 = rtc_get_reset_reason(0);