mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-07 17:08:49 +00:00
feat(esp_system): Adds Kconfigs to place code in IRAM
This commit is contained in:
@@ -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!"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user