mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +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
@@ -172,6 +172,11 @@ SECTIONS
|
||||
*libarch.a:*cpu_region_protect.*(.text .text.* .literal .literal.*)
|
||||
|
||||
*libc.a:sq_remlast.*(.literal .text .literal.* .text.*)
|
||||
|
||||
*libsched.a:irq_dispatch.*(.text .text.* .literal .literal.*)
|
||||
*libsched.a:sched_lock.*(.text .text.* .literal .literal.*)
|
||||
*libsched.a:sched_unlock.*(.text .text.* .literal .literal.*)
|
||||
|
||||
*(.wifirxiram .wifirxiram.*)
|
||||
*(.wifi0iram .wifi0iram.*)
|
||||
*(.wifiorslpiram .wifiorslpiram.*)
|
||||
@@ -319,6 +324,10 @@ SECTIONS
|
||||
*libarch.a:*log_noos.*(.rodata .rodata.*)
|
||||
*libarch.a:*cpu_region_protect.*(.rodata .rodata.*)
|
||||
|
||||
*libsched.a:irq_dispatch.*(.rodata .rodata.*)
|
||||
*libsched.a:sched_lock.*(.rodata .rodata.*)
|
||||
*libsched.a:sched_unlock.*(.rodata .rodata.*)
|
||||
|
||||
. = ALIGN(4);
|
||||
_edata = ABSOLUTE(.);
|
||||
_data_end = ABSOLUTE(.);
|
||||
|
||||
Reference in New Issue
Block a user