From 06acd8b420c4015ab474f76d9f0542f3afc2f9cc Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Fri, 29 Oct 2021 11:17:24 +0200 Subject: [PATCH] cpu/esp8266: place freertos functions in IRAM The functions of the `esp*/freetos` libraries must be placed in IRAM because they can be called when the IROM cache is disabled. While the functions implemented in `cpu/esp8266/freetos/*.c` are already placed in IRAM, the functions implemented in `cpu/esp_common/freetos/*.c` are not placed in IRAM. The reason for this is that the object files of these files are created in the `esp_freertos_common` directory, which is not included in the `esp.riot-os.ld` file because the library is named `esp_freertos_common`. --- cpu/esp8266/ld/esp8266.riot-os.ld | 1 + 1 file changed, 1 insertion(+) diff --git a/cpu/esp8266/ld/esp8266.riot-os.ld b/cpu/esp8266/ld/esp8266.riot-os.ld index e99aa855fe..83e52176ba 100644 --- a/cpu/esp8266/ld/esp8266.riot-os.ld +++ b/cpu/esp8266/ld/esp8266.riot-os.ld @@ -240,6 +240,7 @@ SECTIONS *core/sched.o(.literal .text .literal.* .text.*) *esp_wifi/*(.literal .text .literal.* .text.*) *freertos/*(.literal .text .literal.* .text.*) + *freertos_common/*(.literal .text .literal.* .text.*) *periph/*(.literal .text .literal.* .text.*) *xtimer/*(.literal .text .literal.* .text.*)