Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 106ff9f

Browse files
committed
Merge branch 'bugfix/fix_warning_in_freertos_port' into 'master'
fix(esp8266): Fix warning in port.c by using different section name See merge request sdk/ESP8266_RTOS_SDK!206
2 parents 39da4bd + ed329c1 commit 106ff9f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

components/esp8266/include/esp_attr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
#define ICACHE_RODATA_ATTR
2727

2828
// Forces code into IRAM instead of flash.
29-
#define IRAM_ATTR __attribute__((section(".text")))
29+
#define IRAM_ATTR __attribute__((section(".iram1")))
3030

3131
// Forces data into DRAM instead of flash
32-
#define DRAM_ATTR __attribute__((section(".data")))
32+
#define DRAM_ATTR __attribute__((section(".dram0")))
3333

3434
// Forces data to be 4 bytes aligned
3535
#define WORD_ALIGNED_ATTR __attribute__((aligned(4)))

components/esp8266/ld/eagle.app.v6.common.ld

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ SECTIONS
9393
*(.entry.text)
9494
*(.init.literal)
9595
*(.init)
96+
*(.iram1 .iram1.*)
9697
*libcore.a:spi_flash.o(.literal .text .literal.* .text.*)
9798
*(.literal .text .stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
9899
*(.fini.literal)
@@ -107,6 +108,7 @@ SECTIONS
107108
_data_start = ABSOLUTE(.);
108109
*(.data)
109110
*(.data.*)
111+
*(.dram0)
110112
*(.gnu.linkonce.d.*)
111113
*(.data1)
112114
*(.sdata)

0 commit comments

Comments
 (0)