From 81e3eb45ca83f9700b5b919a4c5aa02ab44f7e7f Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Thu, 14 Oct 2021 15:21:00 +0530 Subject: [PATCH] cpu_start: rename function to add core prefix for more clarity --- components/esp_system/port/cpu_start.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/esp_system/port/cpu_start.c b/components/esp_system/port/cpu_start.c index bfa8e48ed9..f5a64dd887 100644 --- a/components/esp_system/port/cpu_start.c +++ b/components/esp_system/port/cpu_start.c @@ -137,7 +137,7 @@ static volatile bool s_resume_cores; // If CONFIG_SPIRAM_IGNORE_NOTFOUND is set and external RAM is not found or errors out on testing, this is set to false. bool g_spiram_ok = true; -static void intr_matrix_clear(void) +static void core_intr_matrix_clear(void) { uint32_t core_id = cpu_hal_get_core_id(); @@ -180,7 +180,7 @@ void IRAM_ATTR call_start_cpu1(void) ESP_EARLY_LOGI(TAG, "App cpu up."); // Clear interrupt matrix for APP CPU core - intr_matrix_clear(); + core_intr_matrix_clear(); //Take care putting stuff here: if asked, FreeRTOS will happily tell you the scheduler //has started, but it isn't active *on this CPU* yet. @@ -528,7 +528,7 @@ void IRAM_ATTR call_start_cpu0(void) g_startup_time = esp_rtc_get_time_us(); // Clear interrupt matrix for PRO CPU core - intr_matrix_clear(); + core_intr_matrix_clear(); #ifndef CONFIG_IDF_ENV_FPGA // TODO: on FPGA it should be possible to configure this, not currently working with APB_CLK_FREQ changed #ifdef CONFIG_ESP_CONSOLE_UART