esp_system: Mark the startup array as 'const' to save RAM

This commit is contained in:
Angus Gratton
2021-03-02 15:59:44 +11:00
parent c4b5974cd0
commit 38af9dffe1
2 changed files with 5 additions and 4 deletions

View File

@@ -113,7 +113,7 @@ void esp_startup_start_app_other_cores(void) __attribute__((weak, alias("esp_sta
static volatile bool s_system_inited[SOC_CPU_CORES_NUM] = { false };
sys_startup_fn_t g_startup_fn[SOC_CPU_CORES_NUM] = { [0] = start_cpu0,
const sys_startup_fn_t g_startup_fn[SOC_CPU_CORES_NUM] = { [0] = start_cpu0,
#if SOC_CPU_CORES_NUM > 1
[1 ... SOC_CPU_CORES_NUM - 1] = start_cpu_other_cores
#endif
@@ -121,7 +121,7 @@ sys_startup_fn_t g_startup_fn[SOC_CPU_CORES_NUM] = { [0] = start_cpu0,
static volatile bool s_system_full_inited = false;
#else
sys_startup_fn_t g_startup_fn[1] = { start_cpu0 };
const sys_startup_fn_t g_startup_fn[1] = { start_cpu0 };
#endif
#ifdef CONFIG_COMPILER_CXX_EXCEPTIONS