change(esp_hw_support): disable CPU wait-for-event mode on cpu start

This commit is contained in:
wuzhenghui
2025-01-14 21:34:44 +08:00
parent 2117d959bf
commit 121f56ef6d
8 changed files with 50 additions and 3 deletions

View File

@@ -212,7 +212,9 @@ void IRAM_ATTR call_start_cpu1(void)
*/
esp_cpu_intr_set_mtvt_addr(&_mtvt_table);
#endif
#if SOC_CPU_SUPPORT_WFE
rv_utils_disable_wfe_mode();
#endif
ets_set_appcpu_boot_addr(0);
bootloader_init_mem();
@@ -413,6 +415,9 @@ void IRAM_ATTR call_start_cpu0(void)
*/
esp_cpu_intr_set_mtvt_addr(&_mtvt_table);
#endif
#if SOC_CPU_SUPPORT_WFE
rv_utils_disable_wfe_mode();
#endif
/* NOTE: When ESP-TEE is enabled, this sets up the callback function
* which redirects all the interrupt management for the REE (user app)