Skip to content

Commit

Permalink
Move cont_run/cont_yield out of IRAM (#6617)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
earlephilhower authored and devyte committed Oct 7, 2019
1 parent d62fb9f commit 75c3834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cores/esp8266/cont.S
Expand Up @@ -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
Expand Down Expand Up @@ -84,7 +84,7 @@ cont_wrapper:

////////////////////////////////////////////////////

.text
.section .irom0.text
.align 4
.literal_position
.global cont_run
Expand Down

0 comments on commit 75c3834

Please sign in to comment.