source: rtems/cpukit/score/Makefile.am @ 4fc370e

4.11
Last change on this file since 4fc370e was 4fc370e, checked in by Sebastian Huber <sebastian.huber@…>, on Jun 5, 2013 at 10:08:23 AM

score: Move thread dispatch content to new file

Move thread dispatch declarations and inline functions to new header
<rtems/score/threaddispatch.h> to make it independent of the
Thread_Control structure. This avoids a cyclic dependency in case
thread dispatch functions are used for the object implementation.

  • Property mode set to 100644
File size: 13.8 KB
Line 
1include $(top_srcdir)/automake/multilib.am
2include $(top_srcdir)/automake/compile.am
3
4SUBDIRS = cpu
5
6## include
7
8include_rtemsdir = $(includedir)/rtems
9
10include_rtems_HEADERS = include/rtems/debug.h
11include_rtems_HEADERS += include/rtems/system.h
12include_rtems_HEADERS += include/rtems/seterr.h
13include_rtems_HEADERS += include/rtems/bspsmp.h
14
15include_rtems_scoredir = $(includedir)/rtems/score
16
17include_rtems_score_HEADERS = include/rtems/score/address.h
18include_rtems_score_HEADERS += include/rtems/score/apiext.h
19include_rtems_score_HEADERS += include/rtems/score/apimutex.h
20include_rtems_score_HEADERS += include/rtems/score/bitfield.h
21include_rtems_score_HEADERS += include/rtems/score/chain.h
22include_rtems_score_HEADERS += include/rtems/score/context.h
23include_rtems_score_HEADERS += include/rtems/score/copyrt.h
24include_rtems_score_HEADERS += include/rtems/score/corebarrier.h
25include_rtems_score_HEADERS += include/rtems/score/coremsg.h
26include_rtems_score_HEADERS += include/rtems/score/coremutex.h
27include_rtems_score_HEADERS += include/rtems/score/coresem.h
28include_rtems_score_HEADERS += include/rtems/score/heap.h
29include_rtems_score_HEADERS += include/rtems/score/protectedheap.h
30include_rtems_score_HEADERS += include/rtems/score/interr.h
31include_rtems_score_HEADERS += include/rtems/score/isr.h
32include_rtems_score_HEADERS += include/rtems/score/isrlevel.h
33include_rtems_score_HEADERS += include/rtems/score/object.h
34include_rtems_score_HEADERS += include/rtems/score/percpu.h
35include_rtems_score_HEADERS += include/rtems/score/priority.h
36include_rtems_score_HEADERS += include/rtems/score/prioritybitmap.h
37include_rtems_score_HEADERS += include/rtems/score/rbtree.h
38include_rtems_score_HEADERS += include/rtems/score/scheduler.h
39include_rtems_score_HEADERS += include/rtems/score/schedulercbs.h
40include_rtems_score_HEADERS += include/rtems/score/scheduleredf.h
41include_rtems_score_HEADERS += include/rtems/score/schedulerpriority.h
42include_rtems_score_HEADERS += include/rtems/score/schedulersimple.h
43include_rtems_score_HEADERS += include/rtems/score/stack.h
44include_rtems_score_HEADERS += include/rtems/score/states.h
45include_rtems_score_HEADERS += include/rtems/score/sysstate.h
46include_rtems_score_HEADERS += include/rtems/score/thread.h
47include_rtems_score_HEADERS += include/rtems/score/threaddispatch.h
48include_rtems_score_HEADERS += include/rtems/score/threadq.h
49include_rtems_score_HEADERS += include/rtems/score/threadsync.h
50include_rtems_score_HEADERS += include/rtems/score/timespec.h
51include_rtems_score_HEADERS += include/rtems/score/timestamp.h
52include_rtems_score_HEADERS += include/rtems/score/timestamp64.h
53include_rtems_score_HEADERS += include/rtems/score/tod.h
54include_rtems_score_HEADERS += include/rtems/score/tqdata.h
55include_rtems_score_HEADERS += include/rtems/score/userext.h
56include_rtems_score_HEADERS += include/rtems/score/userextimpl.h
57include_rtems_score_HEADERS += include/rtems/score/watchdog.h
58include_rtems_score_HEADERS += include/rtems/score/wkspace.h
59include_rtems_score_HEADERS += include/rtems/score/cpuopts.h
60include_rtems_score_HEADERS += include/rtems/score/basedefs.h
61include_rtems_score_HEADERS += include/rtems/score/atomic.h
62include_rtems_score_HEADERS += include/rtems/score/genericcpuatomic.h
63include_rtems_score_HEADERS += include/rtems/score/genericatomicops.h
64if HAS_SMP
65include_rtems_score_HEADERS += include/rtems/score/smplock.h
66include_rtems_score_HEADERS += include/rtems/score/smp.h
67endif
68
69if HAS_PTHREADS
70include_rtems_score_HEADERS += include/rtems/score/corespinlock.h
71include_rtems_score_HEADERS += include/rtems/score/corerwlock.h
72endif
73
74if HAS_MP
75# We only build multiprocessing related files if HAS_MP was defined
76include_rtems_score_HEADERS += include/rtems/score/mpci.h
77include_rtems_score_HEADERS += include/rtems/score/mppkt.h
78include_rtems_score_HEADERS += include/rtems/score/objectmp.h
79include_rtems_score_HEADERS += include/rtems/score/threadmp.h
80endif
81
82if HAS_SMP
83include_rtems_score_HEADERS += include/rtems/score/schedulersimplesmp.h
84endif
85
86## inline
87include_rtems_score_HEADERS += inline/rtems/score/address.inl
88include_rtems_score_HEADERS += inline/rtems/score/chain.inl
89include_rtems_score_HEADERS += inline/rtems/score/corebarrier.inl
90include_rtems_score_HEADERS += inline/rtems/score/coremsg.inl
91include_rtems_score_HEADERS += inline/rtems/score/coremutex.inl
92include_rtems_score_HEADERS += inline/rtems/score/coresem.inl
93include_rtems_score_HEADERS += inline/rtems/score/heap.inl
94include_rtems_score_HEADERS += inline/rtems/score/isr.inl
95include_rtems_score_HEADERS += inline/rtems/score/object.inl
96include_rtems_score_HEADERS += inline/rtems/score/priority.inl
97include_rtems_score_HEADERS += inline/rtems/score/prioritybitmap.inl
98include_rtems_score_HEADERS += inline/rtems/score/rbtree.inl
99include_rtems_score_HEADERS += inline/rtems/score/scheduler.inl
100include_rtems_score_HEADERS += inline/rtems/score/schedulerpriority.inl
101include_rtems_score_HEADERS += inline/rtems/score/schedulersimple.inl
102include_rtems_score_HEADERS += inline/rtems/score/stack.inl
103include_rtems_score_HEADERS += inline/rtems/score/states.inl
104include_rtems_score_HEADERS += inline/rtems/score/sysstate.inl
105include_rtems_score_HEADERS += inline/rtems/score/thread.inl
106include_rtems_score_HEADERS += inline/rtems/score/threadq.inl
107include_rtems_score_HEADERS += inline/rtems/score/tod.inl
108include_rtems_score_HEADERS += inline/rtems/score/tqdata.inl
109include_rtems_score_HEADERS += inline/rtems/score/watchdog.inl
110include_rtems_score_HEADERS += inline/rtems/score/wkspace.inl
111include_rtems_score_HEADERS += inline/rtems/score/atomic.inl
112
113if HAS_PTHREADS
114include_rtems_score_HEADERS += inline/rtems/score/corespinlock.inl
115include_rtems_score_HEADERS += inline/rtems/score/corerwlock.inl
116endif
117
118if HAS_MP
119## We only build multiprocessing related files if HAS_MP was defined
120include_rtems_score_HEADERS += inline/rtems/score/mppkt.inl
121include_rtems_score_HEADERS += inline/rtems/score/objectmp.inl
122include_rtems_score_HEADERS += inline/rtems/score/threadmp.inl
123endif
124
125## src
126
127AM_CPPFLAGS += -D__RTEMS_INSIDE__
128
129noinst_LIBRARIES = libscore.a
130libscore_a_SOURCES =
131libscore_a_CPPFLAGS = $(AM_CPPFLAGS)
132
133# We only build multiprocessing related files if HAS_MP was defined
134if HAS_MP
135libscore_a_SOURCES += src/mpci.c src/objectmp.c src/threadmp.c
136endif
137
138if HAS_SMP
139libscore_a_SOURCES += src/isrsmp.c src/smp.c \
140    src/schedulersimplesmpblock.c src/schedulersimplesmpschedule.c \
141    src/schedulersimplesmpunblock.c src/schedulersimplesmptick.c
142endif
143
144## CORE_APIMUTEX_C_FILES
145libscore_a_SOURCES += src/apimutex.c src/apimutexallocate.c \
146    src/apimutexlock.c src/apimutexunlock.c
147
148## CORE_BARRIER_C_FILES
149libscore_a_SOURCES += src/corebarrier.c src/corebarrierrelease.c \
150    src/corebarrierwait.c
151
152## CORE_MESSAGE_QUEUE_C_FILES
153libscore_a_SOURCES += src/coremsg.c src/coremsgbroadcast.c \
154    src/coremsgclose.c src/coremsgflush.c src/coremsgflushwait.c \
155    src/coremsginsert.c src/coremsgflushsupp.c src/coremsgseize.c \
156    src/coremsgsubmit.c
157
158## CORE_MUTEX_C_FILES
159libscore_a_SOURCES += src/coremutex.c src/coremutexflush.c \
160    src/coremutexseize.c src/coremutexsurrender.c \
161    src/coremutexseizeintr.c
162
163## CORE_PERCPU_C_FILES
164libscore_a_SOURCES += src/percpu.c
165libscore_a_SOURCES += src/percpuasm.c
166
167## CORE_RWLOCK_C_FILES
168if HAS_PTHREADS
169libscore_a_SOURCES += src/corerwlock.c src/corerwlockobtainread.c \
170    src/corerwlockobtainwrite.c src/corerwlockrelease.c src/corerwlocktimeout.c
171endif
172
173## CORE_SEMAPHORE_C_FILES
174libscore_a_SOURCES += src/coresem.c src/coresemflush.c src/coresemseize.c \
175    src/coresemsurrender.c
176
177## CORE_SPINLOCK_C_FILES
178if HAS_PTHREADS
179libscore_a_SOURCES += src/corespinlock.c src/corespinlockrelease.c \
180    src/corespinlockwait.c
181endif
182
183## HEAP_C_FILES
184libscore_a_SOURCES += src/heap.c src/heapallocate.c src/heapextend.c \
185    src/heapfree.c src/heapsizeofuserarea.c src/heapwalk.c src/heapgetinfo.c \
186    src/heapgetfreeinfo.c src/heapresizeblock.c src/heapiterate.c \
187    src/heapgreedy.c src/heapnoextend.c
188
189## OBJECT_C_FILES
190libscore_a_SOURCES += src/objectallocate.c src/objectclose.c \
191    src/objectextendinformation.c src/objectfree.c src/objectget.c \
192    src/objectgetisr.c src/objectgetnext.c src/objectinitializeinformation.c \
193    src/objectnametoid.c src/objectnametoidstring.c \
194    src/objectshrinkinformation.c src/objectgetnoprotection.c \
195    src/objectidtoname.c src/objectgetnameasstring.c src/objectsetname.c \
196    src/objectgetinfo.c src/objectgetinfoid.c src/objectapimaximumclass.c \
197    src/objectnamespaceremove.c \
198    src/objectactivecount.c
199
200## SCHEDULER_C_FILES
201libscore_a_SOURCES += src/scheduler.c
202
203## SCHEDULERPRIORITY_C_FILES
204libscore_a_SOURCES += src/schedulerpriority.c \
205    src/schedulerpriorityallocate.c \
206    src/schedulerprioritytick.c \
207    src/schedulerpriorityblock.c \
208    src/schedulerpriorityenqueue.c \
209    src/schedulerpriorityenqueuefirst.c \
210    src/schedulerpriorityextract.c \
211    src/schedulerpriorityfree.c \
212    src/schedulerpriorityprioritycompare.c \
213    src/schedulerpriorityreleasejob.c \
214    src/schedulerpriorityschedule.c \
215    src/schedulerpriorityunblock.c \
216    src/schedulerpriorityupdate.c \
217    src/schedulerpriorityyield.c
218
219## SCHEDULERSIMPLE_C_FILES
220libscore_a_SOURCES += src/schedulersimple.c \
221    src/schedulersimpleblock.c \
222    src/schedulersimpleenqueue.c \
223    src/schedulersimpleenqueuefirst.c \
224    src/schedulersimpleextract.c \
225    src/schedulersimplereadyqueueenqueue.c \
226    src/schedulersimplereadyqueueenqueuefirst.c \
227    src/schedulersimpleschedule.c \
228    src/schedulersimpleunblock.c \
229    src/schedulersimpleyield.c
230
231## SCHEDULEREDF_C_FILES
232libscore_a_SOURCES += src/scheduleredf.c \
233    src/scheduleredfallocate.c \
234    src/scheduleredfblock.c \
235    src/scheduleredfenqueue.c \
236    src/scheduleredfenqueuefirst.c \
237    src/scheduleredfextract.c \
238    src/scheduleredffree.c \
239    src/scheduleredfprioritycompare.c \
240    src/scheduleredfreleasejob.c \
241    src/scheduleredfschedule.c \
242    src/scheduleredfunblock.c \
243    src/scheduleredfupdate.c \
244    src/scheduleredfyield.c
245
246## SCHEDULERCBS_C_FILES
247libscore_a_SOURCES += src/schedulercbs.c \
248    src/schedulercbsallocate.c \
249    src/schedulercbsattachthread.c \
250    src/schedulercbscleanup.c \
251    src/schedulercbscreateserver.c \
252    src/schedulercbsdestroyserver.c \
253    src/schedulercbsdetachthread.c \
254    src/schedulercbsgetapprovedbudget.c \
255    src/schedulercbsgetexecutiontime.c \
256    src/schedulercbsgetparameters.c \
257    src/schedulercbsgetremainingbudget.c \
258    src/schedulercbsgetserverid.c \
259    src/schedulercbssetparameters.c \
260    src/schedulercbsreleasejob.c \
261    src/schedulercbsunblock.c
262
263## PROTECTED_HEAP_C_FILES
264libscore_a_SOURCES += src/pheapallocate.c \
265    src/pheapextend.c src/pheapfree.c src/pheapgetsize.c \
266    src/pheapgetblocksize.c src/pheapgetfreeinfo.c src/pheapgetinfo.c \
267    src/pheapinit.c src/pheapresizeblock.c src/pheapwalk.c src/pheapiterate.c
268
269## RBTREE_C_FILES
270libscore_a_SOURCES += src/rbtree.c \
271    src/rbtreeextract.c src/rbtreefind.c src/rbtreefindheader.c \
272    src/rbtreeget.c src/rbtreeinsert.c src/rbtreeiterate.c src/rbtreenext.c
273
274## THREAD_C_FILES
275libscore_a_SOURCES += src/thread.c src/threadchangepriority.c \
276    src/threadclearstate.c src/threadclose.c src/threadcreateidle.c \
277    src/threaddelayended.c src/threaddispatch.c \
278    src/threadenabledispatch.c src/threaddisabledispatch.c \
279    src/threadget.c src/threadhandler.c src/threadinitialize.c \
280    src/threadloadenv.c src/threadready.c src/threadreset.c \
281    src/threadrestart.c src/threadsetpriority.c \
282    src/threadsetstate.c src/threadsettransient.c \
283    src/threadstackallocate.c src/threadstackfree.c src/threadstart.c \
284    src/threadstartmultitasking.c src/iterateoverthreads.c \
285    src/threadblockingoperationcancel.c
286   
287if HAS_SMP
288libscore_a_SOURCES += src/threaddispatchdisablelevel.c
289endif
290
291## THREADQ_C_FILES
292libscore_a_SOURCES += src/threadq.c src/threadqdequeue.c \
293    src/threadqdequeuefifo.c src/threadqdequeuepriority.c \
294    src/threadqenqueue.c src/threadqenqueuefifo.c \
295    src/threadqenqueuepriority.c src/threadqextract.c \
296    src/threadqextractfifo.c src/threadqextractpriority.c \
297    src/threadqextractwithproxy.c src/threadqfirst.c src/threadqfirstfifo.c \
298    src/threadqfirstpriority.c src/threadqflush.c src/threadqrequeue.c \
299    src/threadqprocesstimeout.c src/threadqtimeout.c
300
301## TIMESPEC_C_FILES
302libscore_a_SOURCES += src/timespecaddto.c src/timespecfromticks.c \
303    src/timespecisvalid.c src/timespeclessthan.c \
304    src/timespecsubtract.c src/timespectoticks.c src/timespecdivide.c \
305    src/timespecdividebyinteger.c
306
307## TIMESTAMP_INT64_C_FILES
308libscore_a_SOURCES += src/ts64addto.c src/ts64dividebyinteger.c \
309    src/ts64divide.c src/ts64equalto.c \
310    src/ts64getnanoseconds.c src/ts64getseconds.c \
311    src/ts64lessthan.c \
312    src/ts64set.c src/ts64settozero.c src/ts64subtract.c \
313    src/ts64toticks.c src/ts64totimespec.c src/ts64totimeval.c
314
315## TOD_C_FILES
316libscore_a_SOURCES += src/coretod.c src/coretodset.c src/coretodget.c \
317    src/coretodgetuptimetimespec.c src/coretodtickle.c \
318    src/coretodmsecstoticks.c src/coretodtickspersec.c src/coretodusectoticks.c
319
320## WATCHDOG_C_FILES
321libscore_a_SOURCES += src/watchdog.c src/watchdogadjust.c \
322    src/watchdogadjusttochain.c src/watchdoginsert.c src/watchdogremove.c \
323    src/watchdogtickle.c src/watchdogreport.c src/watchdogreportchain.c \
324    src/watchdognanoseconds.c
325
326## USEREXT_C_FILES
327libscore_a_SOURCES += src/userextaddset.c \
328    src/userext.c src/userextremoveset.c src/userextiterate.c
329
330## STD_C_FILES
331libscore_a_SOURCES += src/apiext.c src/chain.c src/chainappend.c \
332    src/chainextract.c src/chainget.c src/chaininsert.c \
333    src/chainappendempty.c src/chainprependempty.c src/chaingetempty.c \
334    src/chainnodecount.c \
335    src/interr.c src/isr.c src/wkspace.c src/wkstringduplicate.c
336
337EXTRA_DIST = src/Unlimited.txt
338
339DISTCLEANFILES = include/rtems/score/cpuopts.h
340
341include $(srcdir)/preinstall.am
342include $(top_srcdir)/automake/subdirs.am
343include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.