From 75c3834c8fc3af47d4d8c90125930b4a9535d8fb Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Mon, 7 Oct 2019 14:37:59 -0700 Subject: [PATCH] Move cont_run/cont_yield out of IRAM (#6617) cont_run is only called by loop_task(), which is not going to execute during an IRQ and is stored, itself, in flash. cont_yield cannot be called from an IRQ (since it's illegal to yield inside IRQs), so move it out of IRAM, too. Saves ~71 bytes of IRAM --- cores/esp8266/cont.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cores/esp8266/cont.S b/cores/esp8266/cont.S index 4304db448..00ca01778 100644 --- a/cores/esp8266/cont.S +++ b/cores/esp8266/cont.S @@ -18,7 +18,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ - .text + .section .irom0.text .align 4 .literal_position .global cont_yield @@ -84,7 +84,7 @@ cont_wrapper: //////////////////////////////////////////////////// - .text + .section .irom0.text .align 4 .literal_position .global cont_run