Skip to content

Commit 916eb89

Browse files
dok-netdevyte
authored andcommitted
Mark esp_schedule IRAM_ATTR to make it ISR safe - this complements the suspend CONT via esp_yield pattern in esp_delay for early returning from delay due to external events. In libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp this is done from CBs, that are called from tools/sdk/lwip/include/lwip/dns.h (esp8266#6809)
1 parent 6533be3 commit 916eb89

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cores/esp8266/core_esp8266_main.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ extern "C" void __esp_yield() {
108108

109109
extern "C" void esp_yield() __attribute__ ((weak, alias("__esp_yield")));
110110

111-
extern "C" void esp_schedule() {
112-
// always on CONT stack here
111+
extern "C" IRAM_ATTR void esp_schedule() {
113112
ets_post(LOOP_TASK_PRIORITY, 0, 0);
114113
}
115114

0 commit comments

Comments
 (0)