summaryrefslogtreecommitdiffstatshomepage
path: root/py/modmicropython.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-06-28 12:55:54 +1000
committerDamien George <damien.p.george@gmail.com>2018-06-28 12:55:54 +1000
commitd800ed187756c734458d269b1bf0dbfe554ad4f1 (patch)
tree6761d8a29d3963ffff47a71c39e2c396d704edb8 /py/modmicropython.c
parentd8dc918deb8d4b13b8919706f9f208542c9ef2e6 (diff)
downloadmicropython-d800ed187756c734458d269b1bf0dbfe554ad4f1.tar.gz
micropython-d800ed187756c734458d269b1bf0dbfe554ad4f1.zip
esp8266/esp8266_common.ld: Put mp_keyboard_interrupt in iRAM.
This function may be called from a UART IRQ, which may interrupt the system when it is erasing/reading/writing flash. In such a case all code executing from the IRQ must be in iRAM (because the SPI flash is busy), so put mp_keyboard_interrupt in iRAM so ctrl-C can be caught during flash access. This patch also takes get_fattime out of iRAM and puts it in iROM to make space for mp_keyboard_interrupt. There's no real need to have get_fattime in iRAM because it calls other functions in iROM. Fixes issue #3897.
Diffstat (limited to 'py/modmicropython.c')
0 files changed, 0 insertions, 0 deletions