From 960b03eb8e70a19472f147dd6ecf5d33c48fbad9 Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Mon, 7 Oct 2019 09:08:14 -0700 Subject: [PATCH] Move cont_run/cont_yield out of IRAM 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 4304db448c..00ca017785 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