Skip to content

Commit e5618e9

Browse files
committed
Merge branch 'feature/disable_irq_in_boot' into 'master'
feat(bootloader): Disable CPU interrupt in boot See merge request sdk/ESP8266_RTOS_SDK!1653
2 parents bbde375 + 2115e02 commit e5618e9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/bootloader/subproject/main/bootloader_start.c

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "esp_image_format.h"
2323
#include "esp_spi_flash.h"
2424
#include "esp_log.h"
25+
#include "driver/soc.h"
2526

2627
static const char* TAG = "boot";
2728

@@ -30,6 +31,11 @@ static int selected_boot_partition(const bootloader_state_t *bs);
3031

3132
void call_start_cpu(void)
3233
{
34+
esp_irqflag_t irq;
35+
36+
irq = soc_save_local_irq();
37+
ESP_LOGD(TAG, "CPU local irq: 0x%x", irq);
38+
3339
#ifdef CONFIG_BOOTLOADER_FAST_BOOT
3440
REG_SET_BIT(DPORT_CTL_REG, DPORT_CTL_DOUBLE_CLK);
3541
#endif

0 commit comments

Comments
 (0)