1# SPDX-License-Identifier: Apache-2.0
2
3zephyr_library()
4
5zephyr_library_sources(
6  thread.c
7  thread_entry_wrapper.S
8  cpu_idle.S
9  fatal.c
10  fault.c
11  fault_s.S
12  irq_manage.c
13  timestamp.c
14  isr_wrapper.S
15  regular_irq.S
16  switch.S
17  prep_c.c
18  reset.S
19  vector_table.c
20  )
21
22zephyr_library_sources_ifdef(CONFIG_ARCH_CACHE cache.c)
23zephyr_library_sources_ifdef(CONFIG_ARC_FIRQ fast_irq.S)
24
25zephyr_library_sources_ifdef(CONFIG_IRQ_OFFLOAD irq_offload.c)
26
27zephyr_library_sources_ifdef(CONFIG_USERSPACE userspace.S)
28zephyr_library_sources_ifdef(CONFIG_ARC_CONNECT arc_connect.c)
29zephyr_library_sources_ifdef(CONFIG_ARC_CONNECT smp.c)
30
31zephyr_library_sources_ifdef(CONFIG_THREAD_LOCAL_STORAGE tls.c)
32
33add_subdirectory_ifdef(CONFIG_ARC_CORE_MPU mpu)
34add_subdirectory_ifdef(CONFIG_ARC_SECURE_FIRMWARE secureshield)
35
36zephyr_linker_sources(ROM_START SORT_KEY 0x0vectors vector_table.ld)
37