Просмотр исходного кода

esp_system: revert the esp_system_abort to the IRAM section

Felipe Neves 5 лет назад
Родитель
Сommit
e8a276d641
2 измененных файлов с 3 добавлено и 2 удалено
  1. 2 1
      components/esp_system/linker.lf
  2. 1 1
      components/esp_system/startup.c

+ 2 - 1
components/esp_system/linker.lf

@@ -4,7 +4,8 @@ entries:
     panic (noflash)
     panic_handler (noflash)
     reset_reason (noflash)
-    
+    system_api:esp_system_abort (noflash)
+
     if ESP_CONSOLE_USB_CDC_SUPPORT_ETS_PRINTF:
         usb_console:esp_usb_console_write_char (noflash)
         usb_console:esp_usb_console_write_buf (noflash)

+ 1 - 1
components/esp_system/startup.c

@@ -166,7 +166,7 @@ static void  esp_startup_start_app_other_cores_default(void)
     }
 }
 
-static void start_cpu_other_cores_default(void)
+static void IRAM_ATTR start_cpu_other_cores_default(void)
 {
     do_system_init_fn();