Skip to content

Commit 7e5e08b

Browse files
SgrrZhffabiobaltieri
authored andcommitted
arch: arm: Separate common thread code
This commit separates thread.c into two source files, 'cortex_a_r/thread.c' and 'cortex_m/thread.c, it also introduces some changes. 1. Migrate 'thread.c' and 'cortex_m/thread.c'. 2. Migrate 'thread.c' and 'cortex_a_r/thread.c' 3. Remove the 'z_arm_mpu_stack_guard_and_fpu_adjust' function as this is obviously written for Cortex-M architecture. 4. Remove the 'z_arm_prepare_switch_to_main' function as this is only used by Cortex-M architecture. Signed-off-by: Huifeng Zhang <Huifeng.Zhang@arm.com>
1 parent 7dbbc49 commit 7e5e08b

File tree

6 files changed

+1018
-669
lines changed

6 files changed

+1018
-669
lines changed

arch/arm/core/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ zephyr_library_sources(
77
fatal.c
88
nmi.c
99
nmi_on_reset.S
10-
thread.c
1110
)
1211

1312
zephyr_library_sources_ifdef(CONFIG_CPP __aeabi_atexit.c)

arch/arm/core/cortex_a_r/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ zephyr_library_sources(
1616
swap_helper.S
1717
irq_manage.c
1818
prep_c.c
19+
thread.c
1920
)
2021

2122
zephyr_library_sources_ifdef(CONFIG_GEN_SW_ISR_TABLE isr_wrapper.S)

0 commit comments

Comments
 (0)