File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,13 @@ zephyr_library_sources(
11
11
reboot.c
12
12
reset.S
13
13
switch.S
14
- smp.c
15
14
thread.c
16
15
)
17
16
17
+ if ((CONFIG_MP_MAX_NUM_CPUS GREATER 1 ) OR (CONFIG_SMP ))
18
+ zephyr_library_sources (smp.c )
19
+ endif ()
20
+
18
21
zephyr_library_sources_ifdef (CONFIG_DEBUG_COREDUMP coredump.c )
19
22
zephyr_library_sources_ifdef (CONFIG_IRQ_OFFLOAD irq_offload.c )
20
23
zephyr_library_sources_ifdef (CONFIG_RISCV_PMP pmp.c pmp.S )
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ aa_loop:
97
97
call _PrepC
98
98
99
99
boot_secondary_core:
100
+ #if CONFIG_MP_MAX_NUM_CPUS > 1
100
101
la t0, riscv_cpu_wake_flag
101
102
lr t0, 0 (t0)
102
103
bne a0, t0, boot_secondary_core
@@ -108,3 +109,6 @@ boot_secondary_core:
108
109
la t0, riscv_cpu_wake_flag
109
110
sr zero, 0 (t0)
110
111
j z_riscv_secondary_cpu_init
112
+ #else
113
+ j loop_unconfigured_cores
114
+ #endif
You can’t perform that action at this time.
0 commit comments