]> granicus.if.org Git - esp-idf/commitdiff
esp32: Move esp_crosscore_isr_handle_yield() to IRAM
authorAngus Gratton <angus@espressif.com>
Wed, 13 Jun 2018 01:35:48 +0000 (11:35 +1000)
committerAngus Gratton <gus@projectgus.com>
Wed, 13 Jun 2018 01:36:15 +0000 (11:36 +1000)
Also adds a hint to inline, as this is only called in one place
it seems like a natural candidate...

Closes https://github.com/espressif/esp-idf/issues/2055

components/esp32/crosscore_int.c

index 9ccda1f8249c3bd21142ce68d073a6f02ef82fef..18a5237b5ae460a7f4a1930d89cf339ae926a39a 100644 (file)
@@ -44,7 +44,7 @@ static volatile uint32_t reason[ portNUM_PROCESSORS ];
 ToDo: There is a small chance the CPU already has yielded when this ISR is serviced. In that case, it's running the intended task but
 the ISR will cause it to switch _away_ from it. portYIELD_FROM_ISR will probably just schedule the task again, but have to check that.
 */
-static void esp_crosscore_isr_handle_yield()
+static inline void IRAM_ATTR esp_crosscore_isr_handle_yield()
 {
     portYIELD_FROM_ISR();
 }