1# SPDX-License-Identifier: Apache-2.0 2 3zephyr_library() 4 5zephyr_library_sources( 6 cpu_idle.c 7 fatal.c 8 irq_manage.c 9 prep_c.c 10 reboot.c 11 reset.S 12 switch.S 13 thread.c 14) 15 16if ((CONFIG_MP_MAX_NUM_CPUS GREATER 1) OR (CONFIG_SMP)) 17 zephyr_library_sources(smp.c) 18endif () 19 20if (CONFIG_SMP) 21 zephyr_library_sources(ipi.c) 22 23 zephyr_library_sources_ifdef(CONFIG_RISCV_SMP_IPI_CLINT ipi_clint.c) 24endif() 25 26zephyr_library_sources_ifdef(CONFIG_FPU_SHARING fpu.c fpu.S) 27zephyr_library_sources_ifdef(CONFIG_DEBUG_COREDUMP coredump.c) 28zephyr_library_sources_ifdef(CONFIG_IRQ_OFFLOAD irq_offload.c) 29zephyr_library_sources_ifdef(CONFIG_GEN_SW_ISR_TABLE isr.S) 30zephyr_library_sources_ifdef(CONFIG_RISCV_PMP pmp.c pmp.S) 31zephyr_library_sources_ifdef(CONFIG_THREAD_LOCAL_STORAGE tls.c) 32zephyr_library_sources_ifdef(CONFIG_USERSPACE userspace.S) 33zephyr_library_sources_ifdef(CONFIG_SEMIHOST semihost.c) 34zephyr_library_sources_ifdef(CONFIG_ARCH_STACKWALK stacktrace.c) 35zephyr_linker_sources(ROM_START SORT_KEY 0x0vectors vector_table.ld) 36zephyr_library_sources_ifdef(CONFIG_LLEXT elf.c) 37