From 7e49d67badd3eb4ef2c3404f38bdf0d9ce600660 Mon Sep 17 00:00:00 2001 From: Darian Leung Date: Mon, 19 Sep 2022 23:35:25 +0800 Subject: [PATCH] freertos: Move some port functions into flash by default This commit places some functions in port.c and port_common.c into flash by default. These functions are mostly called once during startup, thus shouldn't affect applications much when placed into flash instead of the default IRAM. --- components/freertos/linker.lf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/freertos/linker.lf b/components/freertos/linker.lf index 173a62af78..1c27b25384 100644 --- a/components/freertos/linker.lf +++ b/components/freertos/linker.lf @@ -127,7 +127,14 @@ entries: queue: uxQueueGetQueueNumber (default) queue: vQueueSetQueueNumber (default) queue: ucQueueGetQueueType (default) - port_common:main_task (default) + # port.c Functions port: esp_startup_start_app (default) if ESP_SYSTEM_SINGLE_CORE_MODE = n: port: esp_startup_start_app_other_cores (default) + # port_common.c Functions + port_common:main_task (default) + port_common:esp_startup_start_app_common (default) + port_common:vApplicationGetIdleTaskMemory (default) + port_common:vApplicationGetTimerTaskMemory (default) + if FREERTOS_UNICORE = n: + port_common:other_cpu_startup_idle_hook_cb (default)