Skip to content

Commit 960b03e

Browse files
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
1 parent d62fb9f commit 960b03e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp8266/cont.S

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1919
*/
2020

21-
.text
21+
.section .irom0.text
2222
.align 4
2323
.literal_position
2424
.global cont_yield
@@ -84,7 +84,7 @@ cont_wrapper:
8484

8585
////////////////////////////////////////////////////
8686

87-
.text
87+
.section .irom0.text
8888
.align 4
8989
.literal_position
9090
.global cont_run

0 commit comments

Comments
 (0)