From dfdd841481aa8e78ba86541f1ff1c4af37d1ef59 Mon Sep 17 00:00:00 2001 From: hujun5 Date: Thu, 30 Jan 2025 22:52:34 +0800 Subject: [PATCH] xtensa/esp32s3: Fix esp32s3 sched_lock crash Signed-off-by: hujun5 --- boards/xtensa/esp32s3/common/scripts/esp32s3_sections.ld | 2 ++ boards/xtensa/esp32s3/common/scripts/legacy_sections.ld | 2 ++ boards/xtensa/esp32s3/common/scripts/mcuboot_sections.ld | 2 ++ 3 files changed, 6 insertions(+) diff --git a/boards/xtensa/esp32s3/common/scripts/esp32s3_sections.ld b/boards/xtensa/esp32s3/common/scripts/esp32s3_sections.ld index 7b46b12d7d9c6..e1b9066cc543b 100644 --- a/boards/xtensa/esp32s3/common/scripts/esp32s3_sections.ld +++ b/boards/xtensa/esp32s3/common/scripts/esp32s3_sections.ld @@ -134,9 +134,11 @@ SECTIONS *libsched.a:irq_csection.*(.literal .text .literal.* .text.*) *libsched.a:irq_dispatch.*(.literal .text .literal.* .text.*) *libsched.a:irq_spinlock.*(.literal .text .literal.* .text.*) + *libsched.a:sched_lock.*(.literal .text .literal.* .text.*) *libsched.a:sched_note.*(.literal .text .literal.* .text.*) *libsched.a:sched_suspendscheduler.*(.literal .text .literal.* .text.*) *libsched.a:sched_thistask.*(.literal .text .literal.* .text.*) + *libsched.a:sched_unlock.*(.literal .text .literal.* .text.*) *libsched.a:spinlock.*(.literal .text .literal.* .text.*) *libsched.a:*sched_get_stackinfo.*(.literal .text .literal.* .text.*) *libsched.a:stack_record.*(.literal .text .literal.* .text.*) diff --git a/boards/xtensa/esp32s3/common/scripts/legacy_sections.ld b/boards/xtensa/esp32s3/common/scripts/legacy_sections.ld index 3b3bdef4e2a21..8f582331a023a 100644 --- a/boards/xtensa/esp32s3/common/scripts/legacy_sections.ld +++ b/boards/xtensa/esp32s3/common/scripts/legacy_sections.ld @@ -100,9 +100,11 @@ SECTIONS *libsched.a:irq_csection.*(.literal .text .literal.* .text.*) *libsched.a:irq_dispatch.*(.literal .text .literal.* .text.*) *libsched.a:irq_spinlock.*(.literal .text .literal.* .text.*) + *libsched.a:sched_lock.*(.literal .text .literal.* .text.*) *libsched.a:sched_note.*(.literal .text .literal.* .text.*) *libsched.a:sched_suspendscheduler.*(.literal .text .literal.* .text.*) *libsched.a:sched_thistask.*(.literal .text .literal.* .text.*) + *libsched.a:sched_unlock.*(.literal .text .literal.* .text.*) *libsched.a:spinlock.*(.literal .text .literal.* .text.*) *libsched.a:stack_record.*(.literal .text .literal.* .text.*) diff --git a/boards/xtensa/esp32s3/common/scripts/mcuboot_sections.ld b/boards/xtensa/esp32s3/common/scripts/mcuboot_sections.ld index 82c5a29051829..5053b7fd5740e 100644 --- a/boards/xtensa/esp32s3/common/scripts/mcuboot_sections.ld +++ b/boards/xtensa/esp32s3/common/scripts/mcuboot_sections.ld @@ -208,9 +208,11 @@ SECTIONS *libsched.a:irq_csection.*(.literal .text .literal.* .text.*) *libsched.a:irq_dispatch.*(.literal .text .literal.* .text.*) *libsched.a:irq_spinlock.*(.literal .text .literal.* .text.*) + *libsched.a:sched_lock.*(.literal .text .literal.* .text.*) *libsched.a:sched_note.*(.literal .text .literal.* .text.*) *libsched.a:sched_suspendscheduler.*(.literal .text .literal.* .text.*) *libsched.a:sched_thistask.*(.literal .text .literal.* .text.*) + *libsched.a:sched_unlock.*(.literal .text .literal.* .text.*) *libsched.a:spinlock.*(.literal .text .literal.* .text.*) *libsched.a:stack_record.*(.literal .text .literal.* .text.*)