From 1de17c364f3e1ab10a17e5f360d7ca00eb7260c0 Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Fri, 23 Jul 2021 11:34:10 +0200 Subject: [PATCH] esp32.ld: Force some of libsched.a symbols to internal SRAM. They are used when the cache is disabled. Signed-off-by: Abdelatif Guettouche --- boards/xtensa/esp32/common/scripts/esp32.ld | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/boards/xtensa/esp32/common/scripts/esp32.ld b/boards/xtensa/esp32/common/scripts/esp32.ld index 28e388f7b9a..0996b0955f9 100644 --- a/boards/xtensa/esp32/common/scripts/esp32.ld +++ b/boards/xtensa/esp32/common/scripts/esp32.ld @@ -76,6 +76,14 @@ SECTIONS *libarch.a:xtensa_copystate.*(.literal .text .literal.* .text.*) *libarch.a:xtensa_interruptcontext.*(.literal .text .literal.* .text.*) *libarch.a:xtensa_testset.*(.literal .text .literal.* .text.*) + + *libsched.a:sched_suspendscheduler.*(.literal .text .literal.* .text.*) + *libsched.a:sched_note.*(.literal .text .literal.* .text.*) + *libsched.a:sched_thistask.*(.literal .text .literal.* .text.*) + *libsched.a:spinlock.*(.literal .text .literal.* .text.*) + *libsched.a:irq_csection.*(.literal .text .literal.* .text.*) + *libsched.a:irq_dispatch.*(.literal .text .literal.* .text.*) + *(.wifirxiram .wifirxiram.*) *(.wifi0iram .wifi0iram.*) *(.wifislpiram .wifislpiram.*) @@ -127,6 +135,14 @@ SECTIONS *libarch.a:xtensa_copystate.*(.bss .bss.* COMMON) *libarch.a:xtensa_interruptcontext.*(.bss .bss.* COMMON) *libarch.a:xtensa_testset.*(.bss .bss.* COMMON) + + *libsched.a:sched_suspendscheduler.*(.bss .bss.* COMMON) + *libsched.a:sched_thistask.*(.bss .bss.* COMMON) + *libsched.a:sched_note.*(.bss .bss.* COMMON) + *libsched.a:spinlock.*(.bss .bss.* COMMON) + *libsched.a:irq_csection.*(.bss .bss.* COMMON) + *libsched.a:irq_dispatch.*(.bss .bss.* COMMON) + . = ALIGN(8); _bss_end = ABSOLUTE(.); _ebss = ABSOLUTE(.); @@ -172,6 +188,14 @@ SECTIONS *libarch.a:xtensa_copystate.*(.rodata .rodata.*) *libarch.a:xtensa_interruptcontext.*(.rodata .rodata.*) *libarch.a:xtensa_testset.*(.rodata .rodata.*) + + *libsched.a:sched_suspendscheduler.*(.rodata .rodata.*) + *libsched.a:sched_thistask.*(.rodata .rodata.*) + *libsched.a:sched_note.*(.rodata .rodata.*) + *libsched.a:spinlock.*(.rodata .rodata.*) + *libsched.a:irq_csection.*(.rodata .rodata.*) + *libsched.a:irq_dispatch.*(.rodata .rodata.*) + . = ALIGN(4); _edata = ABSOLUTE(.);