mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
xtensa/esp32[s2|c3|c6|h2]: fix sched_[lock|unlock] boot crash
Move the code to iram0 since sched_lock/sched_unlock is called in the early boot phase.
This commit is contained in:
committed by
Xiang Xiao
parent
e043658d1e
commit
08fe636001
@@ -74,6 +74,8 @@ SECTIONS
|
||||
*(.iram1.*)
|
||||
|
||||
*libsched.a:irq_dispatch.*(.text .text.* .literal .literal.*)
|
||||
*libsched.a:sched_lock.*(.text .text.* .literal .literal.*)
|
||||
*libsched.a:sched_unlock.*(.text .text.* .literal .literal.*)
|
||||
|
||||
*libarch.a:*(.text.esprv_intc_int_get_type .literal.esprv_intc_int_get_type)
|
||||
*libarch.a:*riscv_doirq.*(.text .text.* .literal .literal.*)
|
||||
@@ -194,6 +196,8 @@ SECTIONS
|
||||
*(.dram1.*)
|
||||
|
||||
*libsched.a:irq_dispatch.*(.rodata .rodata.*)
|
||||
*libsched.a:sched_lock.*(.rodata .rodata.*)
|
||||
*libsched.a:sched_unlock.*(.rodata .rodata.*)
|
||||
|
||||
*libarch.a:*(.rodata.esprv_intc_int_get_type)
|
||||
*libarch.a:*riscv_doirq.*(.rodata .rodata.*)
|
||||
|
||||
@@ -74,6 +74,8 @@ SECTIONS
|
||||
*(.iram1.*)
|
||||
|
||||
*libsched.a:irq_dispatch.*(.text .text.* .literal .literal.*)
|
||||
*libsched.a:sched_lock.*(.text .text.* .literal .literal.*)
|
||||
*libsched.a:sched_unlock.*(.text .text.* .literal .literal.*)
|
||||
|
||||
*libarch.a:*(.text.esprv_intc_int_get_type .literal.esprv_intc_int_get_type)
|
||||
*libarch.a:*riscv_doirq.*(.text .text.* .literal .literal.*)
|
||||
@@ -218,6 +220,8 @@ SECTIONS
|
||||
*(.dram1.*)
|
||||
|
||||
*libsched.a:irq_dispatch.*(.rodata .rodata.*)
|
||||
*libsched.a:sched_lock.*(.rodata .rodata.*)
|
||||
*libsched.a:sched_unlock.*(.rodata .rodata.*)
|
||||
|
||||
*libarch.a:*(.rodata.esprv_intc_int_get_type)
|
||||
*libarch.a:*riscv_doirq.*(.rodata .rodata.*)
|
||||
|
||||
@@ -74,6 +74,8 @@ SECTIONS
|
||||
*(.iram1.*)
|
||||
|
||||
*libsched.a:irq_dispatch.*(.text .text.* .literal .literal.*)
|
||||
*libsched.a:sched_lock.*(.text .text.* .literal .literal.*)
|
||||
*libsched.a:sched_unlock.*(.text .text.* .literal .literal.*)
|
||||
|
||||
*libarch.a:*(.text.esprv_intc_int_get_type .literal.esprv_intc_int_get_type)
|
||||
*libarch.a:*riscv_doirq.*(.text .text.* .literal .literal.*)
|
||||
@@ -213,6 +215,8 @@ SECTIONS
|
||||
*(.dram1.*)
|
||||
|
||||
*libsched.a:irq_dispatch.*(.rodata .rodata.*)
|
||||
*libsched.a:sched_lock.*(.rodata .rodata.*)
|
||||
*libsched.a:sched_unlock.*(.rodata .rodata.*)
|
||||
|
||||
*libarch.a:*(.rodata.esprv_intc_int_get_type)
|
||||
*libarch.a:*riscv_doirq.*(.rodata .rodata.*)
|
||||
|
||||
Reference in New Issue
Block a user