mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
Merge branch 'bugfix/esp32s3_int_wdt_v5.0' into 'release/v5.0'
system: disable interrupts in esp_restart_noos_dig to fix infinite int_wdt on ESP32-S3 (v5.0) See merge request espressif/esp-idf!21769
This commit is contained in:
@@ -30,6 +30,15 @@ static shutdown_handler_t shutdown_handlers[SHUTDOWN_HANDLERS_NO];
|
||||
|
||||
void IRAM_ATTR esp_restart_noos_dig(void)
|
||||
{
|
||||
// In case any of the calls below results in re-enabling of interrupts
|
||||
// (for example, by entering a critical section), disable all the
|
||||
// interrupts (e.g. from watchdogs) here.
|
||||
#ifdef CONFIG_IDF_TARGET_ARCH_RISCV
|
||||
rv_utils_intr_global_disable();
|
||||
#else
|
||||
xt_ints_off(0xFFFFFFFF);
|
||||
#endif
|
||||
|
||||
// make sure all the panic handler output is sent from UART FIFO
|
||||
if (CONFIG_ESP_CONSOLE_UART_NUM >= 0) {
|
||||
esp_rom_uart_tx_wait_idle(CONFIG_ESP_CONSOLE_UART_NUM);
|
||||
|
Reference in New Issue
Block a user