feat(esp_system): Adds Kconfigs to place code in IRAM

This commit is contained in:
Konstantin Kondrashov
2025-04-07 16:11:05 +03:00
parent ba2b0fd4b7
commit ff0408c087
55 changed files with 215 additions and 131 deletions

View File

@@ -19,11 +19,11 @@ void *__stack_chk_guard = NULL;
static void __attribute__((constructor))
__esp_stack_guard_setup(void)
{
ESP_LOGD(TAG, "Intialize random stack guard");
ESP_LOGD(TAG, "Initialize random stack guard");
__stack_chk_guard = (void *)esp_random();
}
IRAM_ATTR void __stack_chk_fail(void)
void __stack_chk_fail(void)
{
esp_system_abort(DRAM_STR("Stack smashing protect failure!"));
}