summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/esp8266.ld
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-10-19 00:20:10 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-10-19 00:20:10 +0300
commit9514d847feb70c330d310a366b92013960729bdc (patch)
treeeb231d0a20847fba154d07f4e7f58f6b4865878c /esp8266/esp8266.ld
parent462748de0c2668d40b7f2ea8f2b264d134d5d39b (diff)
downloadmicropython-9514d847feb70c330d310a366b92013960729bdc.tar.gz
micropython-9514d847feb70c330d310a366b92013960729bdc.zip
esp8266: Add MP_FASTCODE modifier to put a function to iRAM.
It can be used in the following manner: void MP_FASTCODE(foo)(int arg) { ... }
Diffstat (limited to 'esp8266/esp8266.ld')
-rw-r--r--esp8266/esp8266.ld3
1 files changed, 2 insertions, 1 deletions
diff --git a/esp8266/esp8266.ld b/esp8266/esp8266.ld
index 010a4cac60..5fb6f13796 100644
--- a/esp8266/esp8266.ld
+++ b/esp8266/esp8266.ld
@@ -202,7 +202,8 @@ SECTIONS
*(.entry.text)
*(.init.literal)
*(.init)
- *(.literal .text .literal.* .text.* .stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
+ *(.literal .text .literal.* .text.* .iram0.literal .iram0.text .iram0.text.*.literal .iram0.text.*)
+ *(.stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
*(.fini.literal)
*(.fini)
*(.gnu.version)