mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
Merge branch 'fix/disable_core1_branch_predictor_in_sleep_process_v5.3' into 'release/v5.3'
fix(esp_hw_support): fix core1 branch predictor access ext mem after cache disabled by core0 (v5.3) See merge request espressif/esp-idf!48460
This commit is contained in:
@@ -509,6 +509,7 @@ esp_err_t sleep_cpu_configure(bool light_sleep_enable)
|
||||
#if ESP_SLEEP_POWER_DOWN_CPU
|
||||
static TCM_IRAM_ATTR void smp_core_do_retention(void)
|
||||
{
|
||||
esp_cpu_branch_prediction_disable();
|
||||
uint8_t core_id = esp_cpu_get_core_id();
|
||||
|
||||
if (core_id == 0) {
|
||||
@@ -573,6 +574,7 @@ static TCM_IRAM_ATTR void smp_core_do_retention(void)
|
||||
;
|
||||
}
|
||||
atomic_store(&s_smp_retention_state[core_id], SMP_IDLE);
|
||||
esp_cpu_branch_prediction_enable();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user