1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

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
This commit is contained in:
Earle F. Philhower, III 2019-10-07 14:37:59 -07:00 committed by Develo
parent d62fb9ffeb
commit 75c3834c8f

View File

@ -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