Skip to content

Commit 0b9cf13

Browse files
committed
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 <[email protected]>
1 parent 16d0e29 commit 0b9cf13

File tree

6 files changed

+1018
-669
lines changed

6 files changed

+1018
-669
lines changed

arch/arm/core/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
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

Lines changed: 1 addition & 0 deletions
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)