mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-10-19 20:35:15 +08:00
Merge branch 'feature/disable_irq_in_boot' into 'master'
feat(bootloader): Disable CPU interrupt in boot See merge request sdk/ESP8266_RTOS_SDK!1653
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "esp_image_format.h"
|
||||
#include "esp_spi_flash.h"
|
||||
#include "esp_log.h"
|
||||
#include "driver/soc.h"
|
||||
|
||||
static const char* TAG = "boot";
|
||||
|
||||
@@ -30,6 +31,11 @@ static int selected_boot_partition(const bootloader_state_t *bs);
|
||||
|
||||
void call_start_cpu(void)
|
||||
{
|
||||
esp_irqflag_t irq;
|
||||
|
||||
irq = soc_save_local_irq();
|
||||
ESP_LOGD(TAG, "CPU local irq: 0x%x", irq);
|
||||
|
||||
#ifdef CONFIG_BOOTLOADER_FAST_BOOT
|
||||
REG_SET_BIT(DPORT_CTL_REG, DPORT_CTL_DOUBLE_CLK);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user