]> granicus.if.org Git - esp-idf/commitdiff
put RODATA of libphy.a into DRAM
authorXiaXiaotian <xiaxiaotian@espressif.com>
Mon, 24 Apr 2017 03:22:49 +0000 (11:22 +0800)
committerXiaXiaotian <xiaxiaotian@espressif.com>
Mon, 24 Apr 2017 03:22:49 +0000 (11:22 +0800)
    There are some RODATAs of libphy.a that are called in ISR. So need
    to put them into DRAM to avoid access them when R/W SPI flash. Due
    to the RODATAs which are called in ISR haven't been picked out to
    put into DRAM, put all of the RODATA of libphy.a into DRAM. This
    will be optimized in the future.

components/esp32/ld/esp32.common.ld

index ff451132bb7c742113943730b8dee498fd3b3d5b..48e31d1ea0c5116668225e7825d33b382b4beae3 100644 (file)
@@ -112,6 +112,7 @@ SECTIONS
     *(.dram1 .dram1.*)
     *libesp32.a:panic.o(.rodata .rodata.*)
     *libesp32.a:app_trace.o(.rodata .rodata.*)
+    *libphy.a:(.rodata .rodata.*)
     _data_end = ABSOLUTE(.);
     . = ALIGN(4);
   } >dram0_0_seg