1# SPDX-License-Identifier: Apache-2.0
2
3zephyr_library()
4
5zephyr_library_sources(
6  cpu_idle.S
7  fatal.c
8  irq_init.c
9  irq_manage.c
10  prep_c.c
11  reset.S
12  reset.c
13  switch.S
14  thread.c
15  vector_table.S
16)
17
18zephyr_library_sources_ifdef(CONFIG_FPU_SHARING fpu.c fpu.S)
19zephyr_library_sources_ifdef(CONFIG_ARM_MMU mmu.c mmu.S)
20zephyr_library_sources_ifdef(CONFIG_USERSPACE userspace.S)
21zephyr_library_sources_ifdef(CONFIG_GEN_SW_ISR_TABLE isr_wrapper.S)
22zephyr_library_sources_ifdef(CONFIG_IRQ_OFFLOAD irq_offload.c)
23zephyr_library_sources_ifdef(CONFIG_THREAD_LOCAL_STORAGE tls.c)
24zephyr_library_sources_ifdef(CONFIG_HAS_ARM_SMCCC smccc-call.S)
25zephyr_library_sources_ifdef(CONFIG_AARCH64_IMAGE_HEADER header.S)
26zephyr_library_sources_ifdef(CONFIG_CACHE_MANAGEMENT cache.c)
27if ((CONFIG_MP_NUM_CPUS GREATER 1) OR (CONFIG_SMP))
28  zephyr_library_sources(smp.c)
29endif ()
30
31add_subdirectory_ifdef(CONFIG_ARM_MPU cortex_r/mpu)
32
33zephyr_cc_option_ifdef(CONFIG_USERSPACE -mno-outline-atomics)
34