source: mainline/kernel/generic/meson.build@ 95658c9

ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 95658c9 was 95658c9, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 2 years ago

Put irq_spinlock_*() functions in a separate file

  • Property mode set to 100644
File size: 3.9 KB
Line 
1#
2# Copyright (c) 2019 Jiří Zárevúcky
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions
7# are met:
8#
9# - Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer.
11# - Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the
13# documentation and/or other materials provided with the distribution.
14# - The name of the author may not be used to endorse or promote products
15# derived from this software without specific prior written permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27#
28
29# Generic kernel sources
30generic_src = []
31
32# Generic kernel sources that are instrumented when CONFIG_TRACE is enabled.
33# Must be disjoint with generic_src.
34instrumentable_src = []
35
36
37generic_src += files(
38 'src/adt/bitmap.c',
39 'src/adt/hash_table.c',
40 'src/adt/list.c',
41 'src/adt/odict.c',
42 'src/cap/cap.c',
43 'src/console/chardev.c',
44 'src/console/console.c',
45 'src/console/prompt.c',
46 'src/cpu/cpu_mask.c',
47 'src/ddi/irq.c',
48 'src/debug/debug.c',
49 'src/debug/panic.c',
50 'src/debug/stacktrace.c',
51 'src/debug/symtab.c',
52 'src/ipc/event.c',
53 'src/ipc/ipc.c',
54 'src/ipc/ipcrsc.c',
55 'src/ipc/irq.c',
56 'src/ipc/ops/conctmeto.c',
57 'src/ipc/ops/concttome.c',
58 'src/ipc/ops/dataread.c',
59 'src/ipc/ops/datawrite.c',
60 'src/ipc/ops/debug.c',
61 'src/ipc/ops/pagein.c',
62 'src/ipc/ops/sharein.c',
63 'src/ipc/ops/shareout.c',
64 'src/ipc/ops/stchngath.c',
65 'src/ipc/sysipc.c',
66 'src/ipc/sysipc_ops.c',
67 'src/lib/elf.c',
68 'src/lib/gsort.c',
69 'src/lib/halt.c',
70 'src/lib/mem.c',
71 'src/lib/memfnc.c',
72 'src/lib/ra.c',
73 'src/lib/rd.c',
74 'src/lib/str.c',
75 'src/lib/strtol.c',
76 'src/lib/str_error.c',
77 'src/lib/ubsan.c',
78 'src/log/log.c',
79 'src/main/shutdown.c',
80 'src/main/uinit.c',
81 'src/main/version.c',
82 'src/mm/backend_anon.c',
83 'src/mm/backend_elf.c',
84 'src/mm/backend_phys.c',
85 'src/mm/backend_user.c',
86 'src/mm/km.c',
87 'src/mm/malloc.c',
88 'src/mm/reserve.c',
89 'src/preempt/preemption.c',
90 'src/printf/printf.c',
91 'src/printf/printf_core.c',
92 'src/printf/snprintf.c',
93 'src/printf/vprintf.c',
94 'src/printf/vsnprintf.c',
95 'src/proc/program.c',
96 'src/proc/scheduler.c',
97 'src/proc/task.c',
98 'src/proc/thread.c',
99 'src/security/perm.c',
100 'src/smp/ipi.c',
101 'src/smp/smp.c',
102 'src/synch/condvar.c',
103 'src/synch/irq_spinlock.c',
104 'src/synch/mutex.c',
105 'src/synch/semaphore.c',
106 'src/synch/smc.c',
107 'src/synch/spinlock.c',
108 'src/synch/syswaitq.c',
109 'src/synch/waitq.c',
110 'src/syscall/copy.c',
111 'src/syscall/syscall.c',
112 'src/sysinfo/stats.c',
113 'src/time/clock.c',
114 'src/time/delay.c',
115 'src/time/timeout.c',
116)
117
118instrumentable_src += files(
119 'src/cpu/cpu.c',
120 'src/ddi/ddi.c',
121 'src/interrupt/interrupt.c',
122 'src/main/kinit.c',
123 'src/main/main.c',
124 'src/mm/as.c',
125 'src/mm/frame.c',
126 'src/mm/page.c',
127 'src/mm/slab.c',
128 'src/mm/tlb.c',
129 'src/proc/current.c',
130 'src/sysinfo/sysinfo.c',
131)
132
133## Kernel console support
134#
135
136if CONFIG_KCONSOLE
137 generic_src += files('src/console/cmd.c')
138 instrumentable_src += files('src/console/kconsole.c')
139endif
140
141## Udebug interface sources
142#
143
144if CONFIG_UDEBUG
145 generic_src += files(
146 'src/ipc/kbox.c',
147 'src/udebug/udebug.c',
148 'src/udebug/udebug_ops.c',
149 'src/udebug/udebug_ipc.c',
150 )
151endif
Note: See TracBrowser for help on using the repository browser.