From fe6c170cf58c5e42a63010b5b4c985749cbc98a6 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 24 Jul 2013 16:19:52 +0200 Subject: score: Create states implementation header Move implementation specific parts of states.h and states.inl into new header file statesimpl.h. The states.h contains now only the application visible API. --- cpukit/libfs/src/pipe/fifo.c | 1 + cpukit/libmisc/capture/capture.c | 2 +- cpukit/libmisc/monitor/mon-prmisc.c | 2 +- cpukit/posix/src/barrierattrdestroy.c | 1 - cpukit/posix/src/cond.c | 1 - cpukit/posix/src/condattrdestroy.c | 1 - cpukit/posix/src/condattrgetpshared.c | 1 - cpukit/posix/src/condattrinit.c | 1 - cpukit/posix/src/condattrsetpshared.c | 1 - cpukit/posix/src/condbroadcast.c | 1 - cpukit/posix/src/conddefaultattributes.c | 1 - cpukit/posix/src/conddestroy.c | 1 - cpukit/posix/src/condget.c | 1 - cpukit/posix/src/condinit.c | 1 - cpukit/posix/src/condsignal.c | 1 - cpukit/posix/src/condsignalsupp.c | 1 - cpukit/posix/src/condtimedwait.c | 1 - cpukit/posix/src/condwait.c | 1 - cpukit/posix/src/condwaitsupp.c | 1 - cpukit/posix/src/killinfo.c | 4 +- cpukit/posix/src/psignal.c | 36 +- cpukit/posix/src/rwlockattrdestroy.c | 1 - cpukit/rtems/include/rtems/rtems/tasks.h | 1 - cpukit/rtems/src/barrierdelete.c | 1 - cpukit/rtems/src/eventmp.c | 12 +- cpukit/rtems/src/eventreceive.c | 1 + cpukit/rtems/src/msg.c | 1 - cpukit/rtems/src/msgmp.c | 1 + cpukit/rtems/src/msgqallocate.c | 1 - cpukit/rtems/src/msgqbroadcast.c | 1 - cpukit/rtems/src/msgqcreate.c | 1 - cpukit/rtems/src/msgqdelete.c | 1 - cpukit/rtems/src/msgqflush.c | 1 - cpukit/rtems/src/msgqgetnumberpending.c | 1 - cpukit/rtems/src/msgqident.c | 1 - cpukit/rtems/src/msgqreceive.c | 1 - cpukit/rtems/src/msgqsend.c | 1 - cpukit/rtems/src/msgqtranslatereturncode.c | 1 - cpukit/rtems/src/msgqurgent.c | 1 - cpukit/rtems/src/partmp.c | 1 + cpukit/rtems/src/region.c | 1 - cpukit/rtems/src/regioncreate.c | 10 +- cpukit/rtems/src/regiondelete.c | 1 - cpukit/rtems/src/regionextend.c | 1 - cpukit/rtems/src/regiongetfreeinfo.c | 1 - cpukit/rtems/src/regiongetinfo.c | 1 - cpukit/rtems/src/regiongetsegment.c | 1 - cpukit/rtems/src/regiongetsegmentsize.c | 1 - cpukit/rtems/src/regionident.c | 1 - cpukit/rtems/src/regionmp.c | 1 + cpukit/rtems/src/regionprocessqueue.c | 1 - cpukit/rtems/src/regionresizesegment.c | 1 - cpukit/rtems/src/regionreturnsegment.c | 1 - cpukit/rtems/src/sem.c | 1 - cpukit/rtems/src/semcreate.c | 1 - cpukit/rtems/src/semdelete.c | 1 - cpukit/rtems/src/semflush.c | 1 - cpukit/rtems/src/semident.c | 1 - cpukit/rtems/src/semobtain.c | 1 - cpukit/rtems/src/semrelease.c | 1 - cpukit/rtems/src/signalmp.c | 2 +- cpukit/rtems/src/systemeventreceive.c | 1 + cpukit/rtems/src/taskident.c | 1 - cpukit/rtems/src/taskinitusers.c | 1 - cpukit/rtems/src/taskmp.c | 1 + cpukit/rtems/src/tasks.c | 1 - cpukit/score/Makefile.am | 2 +- cpukit/score/include/rtems/score/mpci.h | 1 - cpukit/score/include/rtems/score/states.h | 96 +----- cpukit/score/include/rtems/score/statesimpl.h | 477 ++++++++++++++++++++++++++ cpukit/score/include/rtems/score/threadimpl.h | 1 + cpukit/score/inline/rtems/score/states.inl | 392 --------------------- cpukit/score/preinstall.am | 8 +- cpukit/score/src/corebarrier.c | 3 +- cpukit/score/src/corebarrierrelease.c | 1 - cpukit/score/src/corebarrierwait.c | 1 - cpukit/score/src/coremsg.c | 8 +- cpukit/score/src/coremsgbroadcast.c | 1 - cpukit/score/src/coremsgclose.c | 1 - cpukit/score/src/coremsgflush.c | 1 - cpukit/score/src/coremsgflushsupp.c | 1 - cpukit/score/src/coremsgflushwait.c | 1 - cpukit/score/src/coremsginsert.c | 1 - cpukit/score/src/coremsgseize.c | 1 - cpukit/score/src/coremsgsubmit.c | 1 - cpukit/score/src/coremutex.c | 1 - cpukit/score/src/coremutexflush.c | 1 - cpukit/score/src/coremutexseize.c | 1 - cpukit/score/src/coremutexseizeintr.c | 1 - cpukit/score/src/coremutexsurrender.c | 1 - cpukit/score/src/corerwlock.c | 4 +- cpukit/score/src/corerwlockobtainread.c | 1 - cpukit/score/src/corerwlockobtainwrite.c | 1 - cpukit/score/src/corerwlockrelease.c | 1 - cpukit/score/src/coresem.c | 5 +- cpukit/score/src/coresemflush.c | 1 - cpukit/score/src/coresemseize.c | 1 - cpukit/score/src/coresemsurrender.c | 1 - cpukit/score/src/corespinlock.c | 1 - cpukit/score/src/corespinlockrelease.c | 1 - cpukit/score/src/corespinlockwait.c | 1 - cpukit/score/src/mpci.c | 1 - cpukit/score/src/threaddispatchdisablelevel.c | 1 - cpukit/score/src/threadq.c | 1 - cpukit/score/src/threadqdequeue.c | 1 - cpukit/score/src/threadqenqueuefifo.c | 1 - cpukit/score/src/threadqenqueuepriority.c | 9 +- cpukit/score/src/threadqextract.c | 1 - cpukit/score/src/threadqextractwithproxy.c | 8 +- cpukit/score/src/threadqfirst.c | 1 - cpukit/score/src/threadqfirstfifo.c | 1 - cpukit/score/src/threadqfirstpriority.c | 1 - cpukit/score/src/threadqflush.c | 1 - cpukit/score/src/threadqrequeue.c | 8 +- 114 files changed, 530 insertions(+), 653 deletions(-) create mode 100644 cpukit/score/include/rtems/score/statesimpl.h delete mode 100644 cpukit/score/inline/rtems/score/states.inl (limited to 'cpukit') diff --git a/cpukit/libfs/src/pipe/fifo.c b/cpukit/libfs/src/pipe/fifo.c index f4e801b361..eef360c311 100644 --- a/cpukit/libfs/src/pipe/fifo.c +++ b/cpukit/libfs/src/pipe/fifo.c @@ -29,6 +29,7 @@ #include #include #include +#include #include "pipe.h" diff --git a/cpukit/libmisc/capture/capture.c b/cpukit/libmisc/capture/capture.c index 1acfc0dc89..050a92c732 100644 --- a/cpukit/libmisc/capture/capture.c +++ b/cpukit/libmisc/capture/capture.c @@ -29,7 +29,7 @@ #include #include "capture.h" -#include +#include /* * These events are always recorded and are not part of the diff --git a/cpukit/libmisc/monitor/mon-prmisc.c b/cpukit/libmisc/monitor/mon-prmisc.c index e01d486a4c..d9e1c4dd1b 100644 --- a/cpukit/libmisc/monitor/mon-prmisc.c +++ b/cpukit/libmisc/monitor/mon-prmisc.c @@ -11,8 +11,8 @@ #include #include - #include +#include #include #include diff --git a/cpukit/posix/src/barrierattrdestroy.c b/cpukit/posix/src/barrierattrdestroy.c index 76dca52d4d..6fe52f4de2 100644 --- a/cpukit/posix/src/barrierattrdestroy.c +++ b/cpukit/posix/src/barrierattrdestroy.c @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/cpukit/posix/src/cond.c b/cpukit/posix/src/cond.c index f35cfe1742..c7b91fba88 100644 --- a/cpukit/posix/src/cond.c +++ b/cpukit/posix/src/cond.c @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include diff --git a/cpukit/posix/src/condattrdestroy.c b/cpukit/posix/src/condattrdestroy.c index 485fb6958e..a8f1c63bc7 100644 --- a/cpukit/posix/src/condattrdestroy.c +++ b/cpukit/posix/src/condattrdestroy.c @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/cpukit/posix/src/condattrgetpshared.c b/cpukit/posix/src/condattrgetpshared.c index 5b7bcb098e..42e0121c2f 100644 --- a/cpukit/posix/src/condattrgetpshared.c +++ b/cpukit/posix/src/condattrgetpshared.c @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/cpukit/posix/src/condattrinit.c b/cpukit/posix/src/condattrinit.c index 188ec76be8..4007e3ac2a 100644 --- a/cpukit/posix/src/condattrinit.c +++ b/cpukit/posix/src/condattrinit.c @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/cpukit/posix/src/condattrsetpshared.c b/cpukit/posix/src/condattrsetpshared.c index 4aceb4940a..d3b3564d90 100644 --- a/cpukit/posix/src/condattrsetpshared.c +++ b/cpukit/posix/src/condattrsetpshared.c @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/cpukit/posix/src/condbroadcast.c b/cpukit/posix/src/condbroadcast.c index 207c07a721..14e78e700a 100644 --- a/cpukit/posix/src/condbroadcast.c +++ b/cpukit/posix/src/condbroadcast.c @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/cpukit/posix/src/conddefaultattributes.c b/cpukit/posix/src/conddefaultattributes.c index 2f9bae3706..aec90f2e05 100644 --- a/cpukit/posix/src/conddefaultattributes.c +++ b/cpukit/posix/src/conddefaultattributes.c @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/cpukit/posix/src/conddestroy.c b/cpukit/posix/src/conddestroy.c index eff5ba0a13..91388fae4c 100644 --- a/cpukit/posix/src/conddestroy.c +++ b/cpukit/posix/src/conddestroy.c @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/cpukit/posix/src/condget.c b/cpukit/posix/src/condget.c index 32bfa07a2a..4f3bc14a3f 100644 --- a/cpukit/posix/src/condget.c +++ b/cpukit/posix/src/condget.c @@ -16,7 +16,6 @@ #include #include -#include #include #include #include diff --git a/cpukit/posix/src/condinit.c b/cpukit/posix/src/condinit.c index ac77bdded4..2c6bd8d609 100644 --- a/cpukit/posix/src/condinit.c +++ b/cpukit/posix/src/condinit.c @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/cpukit/posix/src/condsignal.c b/cpukit/posix/src/condsignal.c index 0283fe45ea..2f2c9b7ae1 100644 --- a/cpukit/posix/src/condsignal.c +++ b/cpukit/posix/src/condsignal.c @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/cpukit/posix/src/condsignalsupp.c b/cpukit/posix/src/condsignalsupp.c index 5b29a08938..0261b048bd 100644 --- a/cpukit/posix/src/condsignalsupp.c +++ b/cpukit/posix/src/condsignalsupp.c @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/cpukit/posix/src/condtimedwait.c b/cpukit/posix/src/condtimedwait.c index 787fd086c6..4328615604 100644 --- a/cpukit/posix/src/condtimedwait.c +++ b/cpukit/posix/src/condtimedwait.c @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/cpukit/posix/src/condwait.c b/cpukit/posix/src/condwait.c index 2120e3920c..cbd6d957b5 100644 --- a/cpukit/posix/src/condwait.c +++ b/cpukit/posix/src/condwait.c @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/cpukit/posix/src/condwaitsupp.c b/cpukit/posix/src/condwaitsupp.c index 0da3a67dbb..cbc21c3137 100644 --- a/cpukit/posix/src/condwaitsupp.c +++ b/cpukit/posix/src/condwaitsupp.c @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/cpukit/posix/src/killinfo.c b/cpukit/posix/src/killinfo.c index 98fbf1eca2..b2dc75b009 100644 --- a/cpukit/posix/src/killinfo.c +++ b/cpukit/posix/src/killinfo.c @@ -24,11 +24,11 @@ #include #include -#include #include #include -#include #include +#include +#include /* * If you enable this, then you get printk() feedback on each path diff --git a/cpukit/posix/src/psignal.c b/cpukit/posix/src/psignal.c index fc9400d8ba..62c746db61 100644 --- a/cpukit/posix/src/psignal.c +++ b/cpukit/posix/src/psignal.c @@ -18,28 +18,30 @@ #include "config.h" #endif -#if defined(RTEMS_DEBUG) - #include -#endif #include -#include #include -#include /* memcpy */ -#include /* exit */ +#include +#include -#include -#include -#include -#include +#include +#include #include #include #include -#include #include #include #include #include -#include +#include +#include + +/* + * Ensure we have the same number of vectors and default vector entries + */ +RTEMS_STATIC_ASSERT( + sizeof( _POSIX_signals_Vectors ) == sizeof( _POSIX_signals_Default_vectors ), + posix_signals_vectors +); /*** PROCESS WIDE STUFF ****/ @@ -176,16 +178,6 @@ void _POSIX_signals_Manager_Initialization(void) maximum_queued_signals = Configuration_POSIX_API.maximum_queued_signals; - /* - * Ensure we have the same number of vectors and default vector entries - */ - - #if defined(RTEMS_DEBUG) - assert( - sizeof(_POSIX_signals_Vectors) == sizeof(_POSIX_signals_Default_vectors) - ); - #endif - memcpy( _POSIX_signals_Vectors, _POSIX_signals_Default_vectors, diff --git a/cpukit/posix/src/rwlockattrdestroy.c b/cpukit/posix/src/rwlockattrdestroy.c index a8f719e11c..5b18f0e673 100644 --- a/cpukit/posix/src/rwlockattrdestroy.c +++ b/cpukit/posix/src/rwlockattrdestroy.c @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/cpukit/rtems/include/rtems/rtems/tasks.h b/cpukit/rtems/include/rtems/rtems/tasks.h index c5d20c81e5..2030632380 100644 --- a/cpukit/rtems/include/rtems/rtems/tasks.h +++ b/cpukit/rtems/include/rtems/rtems/tasks.h @@ -40,7 +40,6 @@ #define _RTEMS_RTEMS_TASKS_H #include -#include #include #include #include diff --git a/cpukit/rtems/src/barrierdelete.c b/cpukit/rtems/src/barrierdelete.c index 83ed480bfa..8e958c34d9 100644 --- a/cpukit/rtems/src/barrierdelete.c +++ b/cpukit/rtems/src/barrierdelete.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/rtems/src/eventmp.c b/cpukit/rtems/src/eventmp.c index d4c890b434..ae29c3afff 100644 --- a/cpukit/rtems/src/eventmp.c +++ b/cpukit/rtems/src/eventmp.c @@ -18,16 +18,8 @@ #include "config.h" #endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include RTEMS_STATIC_ASSERT( sizeof(Event_MP_Packet) <= MP_PACKET_MINIMUM_PACKET_SIZE, diff --git a/cpukit/rtems/src/eventreceive.c b/cpukit/rtems/src/eventreceive.c index d7a21c35cf..3a1de166ee 100644 --- a/cpukit/rtems/src/eventreceive.c +++ b/cpukit/rtems/src/eventreceive.c @@ -20,6 +20,7 @@ #include #include +#include rtems_status_code rtems_event_receive( rtems_event_set event_in, diff --git a/cpukit/rtems/src/msg.c b/cpukit/rtems/src/msg.c index fd29225c8b..491122fa33 100644 --- a/cpukit/rtems/src/msg.c +++ b/cpukit/rtems/src/msg.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/msgmp.c b/cpukit/rtems/src/msgmp.c index d5162511af..f045b69e35 100644 --- a/cpukit/rtems/src/msgmp.c +++ b/cpukit/rtems/src/msgmp.c @@ -28,6 +28,7 @@ #include #include #include +#include #include RTEMS_STATIC_ASSERT( diff --git a/cpukit/rtems/src/msgqallocate.c b/cpukit/rtems/src/msgqallocate.c index af61def4b8..7d85c775d4 100644 --- a/cpukit/rtems/src/msgqallocate.c +++ b/cpukit/rtems/src/msgqallocate.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/msgqbroadcast.c b/cpukit/rtems/src/msgqbroadcast.c index c8cf757d56..f02af25320 100644 --- a/cpukit/rtems/src/msgqbroadcast.c +++ b/cpukit/rtems/src/msgqbroadcast.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/msgqcreate.c b/cpukit/rtems/src/msgqcreate.c index b3f6bb59d1..67d82ed05b 100644 --- a/cpukit/rtems/src/msgqcreate.c +++ b/cpukit/rtems/src/msgqcreate.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/msgqdelete.c b/cpukit/rtems/src/msgqdelete.c index 213153084f..c133ac1ab7 100644 --- a/cpukit/rtems/src/msgqdelete.c +++ b/cpukit/rtems/src/msgqdelete.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/msgqflush.c b/cpukit/rtems/src/msgqflush.c index 9305b9b58a..9c7019604d 100644 --- a/cpukit/rtems/src/msgqflush.c +++ b/cpukit/rtems/src/msgqflush.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/msgqgetnumberpending.c b/cpukit/rtems/src/msgqgetnumberpending.c index 6c4ff626c4..3dd1b9d118 100644 --- a/cpukit/rtems/src/msgqgetnumberpending.c +++ b/cpukit/rtems/src/msgqgetnumberpending.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/msgqident.c b/cpukit/rtems/src/msgqident.c index 6271a846be..2dc5e222e4 100644 --- a/cpukit/rtems/src/msgqident.c +++ b/cpukit/rtems/src/msgqident.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/msgqreceive.c b/cpukit/rtems/src/msgqreceive.c index d8df301d8d..851889990d 100644 --- a/cpukit/rtems/src/msgqreceive.c +++ b/cpukit/rtems/src/msgqreceive.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/msgqsend.c b/cpukit/rtems/src/msgqsend.c index aeeb0fc2cf..4a251b9d1d 100644 --- a/cpukit/rtems/src/msgqsend.c +++ b/cpukit/rtems/src/msgqsend.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/msgqtranslatereturncode.c b/cpukit/rtems/src/msgqtranslatereturncode.c index aeedff7bf3..156706308b 100644 --- a/cpukit/rtems/src/msgqtranslatereturncode.c +++ b/cpukit/rtems/src/msgqtranslatereturncode.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/msgqurgent.c b/cpukit/rtems/src/msgqurgent.c index ae444e4886..f16c0bb492 100644 --- a/cpukit/rtems/src/msgqurgent.c +++ b/cpukit/rtems/src/msgqurgent.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/partmp.c b/cpukit/rtems/src/partmp.c index ea880266d2..a3b2d214e0 100644 --- a/cpukit/rtems/src/partmp.c +++ b/cpukit/rtems/src/partmp.c @@ -27,6 +27,7 @@ #include #include #include +#include #include RTEMS_STATIC_ASSERT( diff --git a/cpukit/rtems/src/region.c b/cpukit/rtems/src/region.c index 66cb3c4df6..1b151bd230 100644 --- a/cpukit/rtems/src/region.c +++ b/cpukit/rtems/src/region.c @@ -25,7 +25,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/rtems/src/regioncreate.c b/cpukit/rtems/src/regioncreate.c index 163ba99daf..b12647de76 100644 --- a/cpukit/rtems/src/regioncreate.c +++ b/cpukit/rtems/src/regioncreate.c @@ -18,16 +18,12 @@ #include "config.h" #endif -#include +#include #include -#include #include -#include -#include -#include -#include -#include #include +#include +#include /* * rtems_region_create diff --git a/cpukit/rtems/src/regiondelete.c b/cpukit/rtems/src/regiondelete.c index c057545c1b..e65600ede2 100644 --- a/cpukit/rtems/src/regiondelete.c +++ b/cpukit/rtems/src/regiondelete.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/rtems/src/regionextend.c b/cpukit/rtems/src/regionextend.c index 1c31ea29b5..c857eb67c3 100644 --- a/cpukit/rtems/src/regionextend.c +++ b/cpukit/rtems/src/regionextend.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/rtems/src/regiongetfreeinfo.c b/cpukit/rtems/src/regiongetfreeinfo.c index 830a888661..1052b38808 100644 --- a/cpukit/rtems/src/regiongetfreeinfo.c +++ b/cpukit/rtems/src/regiongetfreeinfo.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/rtems/src/regiongetinfo.c b/cpukit/rtems/src/regiongetinfo.c index 0b60f9d179..1cb6f925ed 100644 --- a/cpukit/rtems/src/regiongetinfo.c +++ b/cpukit/rtems/src/regiongetinfo.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/rtems/src/regiongetsegment.c b/cpukit/rtems/src/regiongetsegment.c index aac68bdda2..6622219c4a 100644 --- a/cpukit/rtems/src/regiongetsegment.c +++ b/cpukit/rtems/src/regiongetsegment.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/rtems/src/regiongetsegmentsize.c b/cpukit/rtems/src/regiongetsegmentsize.c index 9dd793f9b7..65c15802b0 100644 --- a/cpukit/rtems/src/regiongetsegmentsize.c +++ b/cpukit/rtems/src/regiongetsegmentsize.c @@ -24,7 +24,6 @@ #include #include #include -#include #include rtems_status_code rtems_region_get_segment_size( diff --git a/cpukit/rtems/src/regionident.c b/cpukit/rtems/src/regionident.c index 6ab8719622..4a64b935a8 100644 --- a/cpukit/rtems/src/regionident.c +++ b/cpukit/rtems/src/regionident.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/rtems/src/regionmp.c b/cpukit/rtems/src/regionmp.c index f0dc4d8864..41b52fabc3 100644 --- a/cpukit/rtems/src/regionmp.c +++ b/cpukit/rtems/src/regionmp.c @@ -27,6 +27,7 @@ #include #include #include +#include #include RTEMS_STATIC_ASSERT( diff --git a/cpukit/rtems/src/regionprocessqueue.c b/cpukit/rtems/src/regionprocessqueue.c index bd6b2f023f..f2c11df9d9 100644 --- a/cpukit/rtems/src/regionprocessqueue.c +++ b/cpukit/rtems/src/regionprocessqueue.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/rtems/src/regionresizesegment.c b/cpukit/rtems/src/regionresizesegment.c index 20fea987e1..fed8333cbe 100644 --- a/cpukit/rtems/src/regionresizesegment.c +++ b/cpukit/rtems/src/regionresizesegment.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/rtems/src/regionreturnsegment.c b/cpukit/rtems/src/regionreturnsegment.c index 46fda06992..4a50bd2f5a 100644 --- a/cpukit/rtems/src/regionreturnsegment.c +++ b/cpukit/rtems/src/regionreturnsegment.c @@ -32,7 +32,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/rtems/src/sem.c b/cpukit/rtems/src/sem.c index c7fe32590f..40bec8d579 100644 --- a/cpukit/rtems/src/sem.c +++ b/cpukit/rtems/src/sem.c @@ -29,7 +29,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/semcreate.c b/cpukit/rtems/src/semcreate.c index 697e00403f..8afb1b6eec 100644 --- a/cpukit/rtems/src/semcreate.c +++ b/cpukit/rtems/src/semcreate.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/semdelete.c b/cpukit/rtems/src/semdelete.c index 4d54b4ccea..5ae516dec1 100644 --- a/cpukit/rtems/src/semdelete.c +++ b/cpukit/rtems/src/semdelete.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/semflush.c b/cpukit/rtems/src/semflush.c index a52cf02a37..93aac390a6 100644 --- a/cpukit/rtems/src/semflush.c +++ b/cpukit/rtems/src/semflush.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/semident.c b/cpukit/rtems/src/semident.c index 41d24c49d1..a7b383bdc0 100644 --- a/cpukit/rtems/src/semident.c +++ b/cpukit/rtems/src/semident.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/semobtain.c b/cpukit/rtems/src/semobtain.c index 04e38d494e..ca7735febc 100644 --- a/cpukit/rtems/src/semobtain.c +++ b/cpukit/rtems/src/semobtain.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/semrelease.c b/cpukit/rtems/src/semrelease.c index f2bbd849e1..e0f148cad3 100644 --- a/cpukit/rtems/src/semrelease.c +++ b/cpukit/rtems/src/semrelease.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/signalmp.c b/cpukit/rtems/src/signalmp.c index 29054cd72d..ec778ac130 100644 --- a/cpukit/rtems/src/signalmp.c +++ b/cpukit/rtems/src/signalmp.c @@ -25,10 +25,10 @@ #include #include #include -#include #include #include #include +#include #include RTEMS_STATIC_ASSERT( diff --git a/cpukit/rtems/src/systemeventreceive.c b/cpukit/rtems/src/systemeventreceive.c index 7e78cff5cb..7e44864f5d 100644 --- a/cpukit/rtems/src/systemeventreceive.c +++ b/cpukit/rtems/src/systemeventreceive.c @@ -26,6 +26,7 @@ #include #include +#include rtems_status_code rtems_event_system_receive( rtems_event_set event_in, diff --git a/cpukit/rtems/src/taskident.c b/cpukit/rtems/src/taskident.c index 1581e09794..a63251c4e1 100644 --- a/cpukit/rtems/src/taskident.c +++ b/cpukit/rtems/src/taskident.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include diff --git a/cpukit/rtems/src/taskinitusers.c b/cpukit/rtems/src/taskinitusers.c index 0801d378d1..3b498f4c1d 100644 --- a/cpukit/rtems/src/taskinitusers.c +++ b/cpukit/rtems/src/taskinitusers.c @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include diff --git a/cpukit/rtems/src/taskmp.c b/cpukit/rtems/src/taskmp.c index 2dec74a3a6..4323f4e9ae 100644 --- a/cpukit/rtems/src/taskmp.c +++ b/cpukit/rtems/src/taskmp.c @@ -28,6 +28,7 @@ #include #include #include +#include #include RTEMS_STATIC_ASSERT( diff --git a/cpukit/rtems/src/tasks.c b/cpukit/rtems/src/tasks.c index 15f7660a87..49d0ad48a3 100644 --- a/cpukit/rtems/src/tasks.c +++ b/cpukit/rtems/src/tasks.c @@ -27,7 +27,6 @@ #include #include #include -#include #include #include #include diff --git a/cpukit/score/Makefile.am b/cpukit/score/Makefile.am index 5b33078edf..be493da0f1 100644 --- a/cpukit/score/Makefile.am +++ b/cpukit/score/Makefile.am @@ -56,6 +56,7 @@ include_rtems_score_HEADERS += include/rtems/score/smplock.h include_rtems_score_HEADERS += include/rtems/score/stack.h include_rtems_score_HEADERS += include/rtems/score/stackimpl.h include_rtems_score_HEADERS += include/rtems/score/states.h +include_rtems_score_HEADERS += include/rtems/score/statesimpl.h include_rtems_score_HEADERS += include/rtems/score/sysstate.h include_rtems_score_HEADERS += include/rtems/score/thread.h include_rtems_score_HEADERS += include/rtems/score/threadimpl.h @@ -100,7 +101,6 @@ endif ## inline include_rtems_score_HEADERS += inline/rtems/score/object.inl -include_rtems_score_HEADERS += inline/rtems/score/states.inl include_rtems_score_HEADERS += inline/rtems/score/threadq.inl include_rtems_score_HEADERS += inline/rtems/score/tod.inl include_rtems_score_HEADERS += inline/rtems/score/tqdata.inl diff --git a/cpukit/score/include/rtems/score/mpci.h b/cpukit/score/include/rtems/score/mpci.h index 16f6d36b20..0932c4763e 100644 --- a/cpukit/score/include/rtems/score/mpci.h +++ b/cpukit/score/include/rtems/score/mpci.h @@ -37,7 +37,6 @@ extern "C" { #endif #include -#include #include #include #include diff --git a/cpukit/score/include/rtems/score/states.h b/cpukit/score/include/rtems/score/states.h index 9fab5d4748..89db185baf 100644 --- a/cpukit/score/include/rtems/score/states.h +++ b/cpukit/score/include/rtems/score/states.h @@ -18,6 +18,12 @@ #ifndef _RTEMS_SCORE_STATES_H #define _RTEMS_SCORE_STATES_H +#include + +#ifdef __cplusplus +extern "C" { +#endif + /** * @defgroup ScoreStates SuperCore Thread States * @@ -28,105 +34,17 @@ */ /**@{*/ -#ifdef __cplusplus -extern "C" { -#endif - /** * The following type defines the control block used to manage a * thread's state. */ typedef uint32_t States_Control; -/* - * The following constants define the individual states which may be - * be used to compose and manipulate a thread's state. - */ - -/** This macro corresponds to all states being set. */ -#define STATES_ALL_SET 0xfffff -/** This macro corresponds to a task being ready. */ -#define STATES_READY 0x00000 -/** This macro corresponds to a task being created but not yet started. */ -#define STATES_DORMANT 0x00001 -/** This macro corresponds to a task being suspended. */ -#define STATES_SUSPENDED 0x00002 -/** This macro corresponds to a task being in an internal state transition. */ -#define STATES_TRANSIENT 0x00004 -/** This macro corresponds to a task which is waiting for a timeout. */ -#define STATES_DELAYING 0x00008 -/** This macro corresponds to a task waiting until a specific TOD. */ -#define STATES_WAITING_FOR_TIME 0x00010 -/** This macro corresponds to a task waiting for a variable length buffer. */ -#define STATES_WAITING_FOR_BUFFER 0x00020 -/** This macro corresponds to a task waiting for a fixed size segment. */ -#define STATES_WAITING_FOR_SEGMENT 0x00040 -/** This macro corresponds to a task waiting for a message. */ -#define STATES_WAITING_FOR_MESSAGE 0x00080 -/** This macro corresponds to a task waiting for an event. */ -#define STATES_WAITING_FOR_EVENT 0x00100 -/** This macro corresponds to a task waiting for a semaphore. */ -#define STATES_WAITING_FOR_SEMAPHORE 0x00200 -/** This macro corresponds to a task waiting for a mutex. */ -#define STATES_WAITING_FOR_MUTEX 0x00400 -/** This macro corresponds to a task waiting for a condition variable. */ -#define STATES_WAITING_FOR_CONDITION_VARIABLE 0x00800 -/** This macro corresponds to a task waiting for a join while exiting. */ -#define STATES_WAITING_FOR_JOIN_AT_EXIT 0x01000 -/** This macro corresponds to a task waiting for a reply to an MPCI request. */ -#define STATES_WAITING_FOR_RPC_REPLY 0x02000 -/** This macro corresponds to a task waiting for a period. */ -#define STATES_WAITING_FOR_PERIOD 0x04000 -/** This macro corresponds to a task waiting for a signal. */ -#define STATES_WAITING_FOR_SIGNAL 0x08000 -/** This macro corresponds to a task waiting for a barrier. */ -#define STATES_WAITING_FOR_BARRIER 0x10000 -/** This macro corresponds to a task waiting for a RWLock. */ -#define STATES_WAITING_FOR_RWLOCK 0x20000 -/** This macro corresponds to a task waiting for a system event. */ -#define STATES_WAITING_FOR_SYSTEM_EVENT 0x40000 - -/** This macro corresponds to a task which is in an interruptible - * blocking state. - */ -#define STATES_INTERRUPTIBLE_BY_SIGNAL 0x10000000 - -/** This macro corresponds to a task waiting for a local object operation. */ -#define STATES_LOCALLY_BLOCKED ( STATES_WAITING_FOR_BUFFER | \ - STATES_WAITING_FOR_SEGMENT | \ - STATES_WAITING_FOR_MESSAGE | \ - STATES_WAITING_FOR_SEMAPHORE | \ - STATES_WAITING_FOR_MUTEX | \ - STATES_WAITING_FOR_CONDITION_VARIABLE | \ - STATES_WAITING_FOR_JOIN_AT_EXIT | \ - STATES_WAITING_FOR_SIGNAL | \ - STATES_WAITING_FOR_BARRIER | \ - STATES_WAITING_FOR_RWLOCK ) - -/** This macro corresponds to a task waiting which is blocked on - * a thread queue. */ -#define STATES_WAITING_ON_THREAD_QUEUE \ - ( STATES_LOCALLY_BLOCKED | \ - STATES_WAITING_FOR_RPC_REPLY ) - -/** This macro corresponds to a task waiting which is blocked. */ -#define STATES_BLOCKED ( STATES_DELAYING | \ - STATES_WAITING_FOR_TIME | \ - STATES_WAITING_FOR_PERIOD | \ - STATES_WAITING_FOR_EVENT | \ - STATES_WAITING_FOR_SYSTEM_EVENT | \ - STATES_WAITING_ON_THREAD_QUEUE | \ - STATES_INTERRUPTIBLE_BY_SIGNAL ) - -#ifndef __RTEMS_APPLICATION__ -#include -#endif +/**@}*/ #ifdef __cplusplus } #endif -/**@}*/ - #endif /* end of include file */ diff --git a/cpukit/score/include/rtems/score/statesimpl.h b/cpukit/score/include/rtems/score/statesimpl.h new file mode 100644 index 0000000000..bc89753375 --- /dev/null +++ b/cpukit/score/include/rtems/score/statesimpl.h @@ -0,0 +1,477 @@ +/** + * @file + * + * @brief Inlined Routines Associated with Thread State Information + * + * This file contains the static inline implementation of the inlined + * routines associated with thread state information. + */ + +/* + * COPYRIGHT (c) 1989-2012. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + */ + +#ifndef _RTEMS_SCORE_STATESIMPL_H +#define _RTEMS_SCORE_STATESIMPL_H + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @addtogroup ScoreStates + */ +/**@{**/ + +/* + * The following constants define the individual states which may be + * be used to compose and manipulate a thread's state. + */ + +/** This macro corresponds to all states being set. */ +#define STATES_ALL_SET 0xfffff +/** This macro corresponds to a task being ready. */ +#define STATES_READY 0x00000 +/** This macro corresponds to a task being created but not yet started. */ +#define STATES_DORMANT 0x00001 +/** This macro corresponds to a task being suspended. */ +#define STATES_SUSPENDED 0x00002 +/** This macro corresponds to a task being in an internal state transition. */ +#define STATES_TRANSIENT 0x00004 +/** This macro corresponds to a task which is waiting for a timeout. */ +#define STATES_DELAYING 0x00008 +/** This macro corresponds to a task waiting until a specific TOD. */ +#define STATES_WAITING_FOR_TIME 0x00010 +/** This macro corresponds to a task waiting for a variable length buffer. */ +#define STATES_WAITING_FOR_BUFFER 0x00020 +/** This macro corresponds to a task waiting for a fixed size segment. */ +#define STATES_WAITING_FOR_SEGMENT 0x00040 +/** This macro corresponds to a task waiting for a message. */ +#define STATES_WAITING_FOR_MESSAGE 0x00080 +/** This macro corresponds to a task waiting for an event. */ +#define STATES_WAITING_FOR_EVENT 0x00100 +/** This macro corresponds to a task waiting for a semaphore. */ +#define STATES_WAITING_FOR_SEMAPHORE 0x00200 +/** This macro corresponds to a task waiting for a mutex. */ +#define STATES_WAITING_FOR_MUTEX 0x00400 +/** This macro corresponds to a task waiting for a condition variable. */ +#define STATES_WAITING_FOR_CONDITION_VARIABLE 0x00800 +/** This macro corresponds to a task waiting for a join while exiting. */ +#define STATES_WAITING_FOR_JOIN_AT_EXIT 0x01000 +/** This macro corresponds to a task waiting for a reply to an MPCI request. */ +#define STATES_WAITING_FOR_RPC_REPLY 0x02000 +/** This macro corresponds to a task waiting for a period. */ +#define STATES_WAITING_FOR_PERIOD 0x04000 +/** This macro corresponds to a task waiting for a signal. */ +#define STATES_WAITING_FOR_SIGNAL 0x08000 +/** This macro corresponds to a task waiting for a barrier. */ +#define STATES_WAITING_FOR_BARRIER 0x10000 +/** This macro corresponds to a task waiting for a RWLock. */ +#define STATES_WAITING_FOR_RWLOCK 0x20000 +/** This macro corresponds to a task waiting for a system event. */ +#define STATES_WAITING_FOR_SYSTEM_EVENT 0x40000 + +/** This macro corresponds to a task which is in an interruptible + * blocking state. + */ +#define STATES_INTERRUPTIBLE_BY_SIGNAL 0x10000000 + +/** This macro corresponds to a task waiting for a local object operation. */ +#define STATES_LOCALLY_BLOCKED ( STATES_WAITING_FOR_BUFFER | \ + STATES_WAITING_FOR_SEGMENT | \ + STATES_WAITING_FOR_MESSAGE | \ + STATES_WAITING_FOR_SEMAPHORE | \ + STATES_WAITING_FOR_MUTEX | \ + STATES_WAITING_FOR_CONDITION_VARIABLE | \ + STATES_WAITING_FOR_JOIN_AT_EXIT | \ + STATES_WAITING_FOR_SIGNAL | \ + STATES_WAITING_FOR_BARRIER | \ + STATES_WAITING_FOR_RWLOCK ) + +/** This macro corresponds to a task waiting which is blocked on + * a thread queue. */ +#define STATES_WAITING_ON_THREAD_QUEUE \ + ( STATES_LOCALLY_BLOCKED | \ + STATES_WAITING_FOR_RPC_REPLY ) + +/** This macro corresponds to a task waiting which is blocked. */ +#define STATES_BLOCKED ( STATES_DELAYING | \ + STATES_WAITING_FOR_TIME | \ + STATES_WAITING_FOR_PERIOD | \ + STATES_WAITING_FOR_EVENT | \ + STATES_WAITING_FOR_SYSTEM_EVENT | \ + STATES_WAITING_ON_THREAD_QUEUE | \ + STATES_INTERRUPTIBLE_BY_SIGNAL ) + +/** + * This function sets the given states_to_set into the current_state + * passed in. The result is returned to the user in current_state. + * + * @param[in] states_to_set is the state bits to set + * @param[in] current_state is the state set to add them to + * + * @return This method returns the updated states value. + */ +RTEMS_INLINE_ROUTINE States_Control _States_Set ( + States_Control states_to_set, + States_Control current_state +) +{ + return (current_state | states_to_set); +} + +/** + * This function clears the given states_to_clear into the current_state + * passed in. The result is returned to the user in current_state. + * + * @param[in] states_to_clear is the state bits to clean + * @param[in] current_state is the state set to remove them from + * + * @return This method returns the updated states value. + */ +RTEMS_INLINE_ROUTINE States_Control _States_Clear ( + States_Control states_to_clear, + States_Control current_state +) +{ + return (current_state & ~states_to_clear); +} + +/** + * This function returns true if the_states indicates that the + * state is READY, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_ready ( + States_Control the_states +) +{ + return (the_states == STATES_READY); +} + +/** + * This function returns true if the DORMANT state is the ONLY state + * set in the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_only_dormant ( + States_Control the_states +) +{ + return (the_states == STATES_DORMANT); +} + +/** + * This function returns true if the DORMANT state is set in + * the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_dormant ( + States_Control the_states +) +{ + return (the_states & STATES_DORMANT); +} + +/** + * This function returns true if the SUSPENDED state is set in + * the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( + States_Control the_states +) +{ + return (the_states & STATES_SUSPENDED); +} + +/** + * This function returns true if the TRANSIENT state is set in + * the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_transient ( + States_Control the_states +) +{ + return (the_states & STATES_TRANSIENT); +} + +/** + * This function returns true if the DELAYING state is set in + * the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_delaying ( + States_Control the_states +) +{ + return (the_states & STATES_DELAYING); +} + +/** + * This function returns true if the WAITING_FOR_BUFFER state is set in + * the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_buffer ( + States_Control the_states +) +{ + return (the_states & STATES_WAITING_FOR_BUFFER); +} + +/** + * This function returns true if the WAITING_FOR_SEGMENT state is set in + * the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_segment ( + States_Control the_states +) +{ + return (the_states & STATES_WAITING_FOR_SEGMENT); +} + +/** + * This function returns true if the WAITING_FOR_MESSAGE state is set in + * the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_message ( + States_Control the_states +) +{ + return (the_states & STATES_WAITING_FOR_MESSAGE); +} + +/** + * This function returns true if the WAITING_FOR_EVENT state is set in + * the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event ( + States_Control the_states +) +{ + return (the_states & STATES_WAITING_FOR_EVENT); +} + +/** + * This function returns true if the WAITING_FOR_SYSTEM_EVENT state is set in + * the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_system_event ( + States_Control the_states +) +{ + return (the_states & STATES_WAITING_FOR_SYSTEM_EVENT); +} + +/** + * This function returns true if the WAITING_FOR_MUTEX state + * is set in the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_mutex ( + States_Control the_states +) +{ + return (the_states & STATES_WAITING_FOR_MUTEX); +} + +/** + * This function returns true if the WAITING_FOR_SEMAPHORE state + * is set in the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_semaphore ( + States_Control the_states +) +{ + return (the_states & STATES_WAITING_FOR_SEMAPHORE); +} + +/** + * This function returns true if the WAITING_FOR_TIME state is set in + * the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_time ( + States_Control the_states +) +{ + return (the_states & STATES_WAITING_FOR_TIME); +} + +/** + * This function returns true if the WAITING_FOR_TIME state is set in + * the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_rpc_reply ( + States_Control the_states +) +{ + return (the_states & STATES_WAITING_FOR_RPC_REPLY); +} + +/** + * This function returns true if the WAITING_FOR_PERIOD state is set in + * the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_period ( + States_Control the_states +) +{ + return (the_states & STATES_WAITING_FOR_PERIOD); +} + +/** + * This function returns true if the task's state is set in + * way that allows it to be interrupted by a signal. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_interruptible_by_signal ( + States_Control the_states +) +{ + return (the_states & STATES_INTERRUPTIBLE_BY_SIGNAL); + +} +/** + * This function returns true if one of the states which indicates + * that a task is blocked waiting for a local resource is set in + * the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the desired state condition is set. + */ + +RTEMS_INLINE_ROUTINE bool _States_Is_locally_blocked ( + States_Control the_states +) +{ + return (the_states & STATES_LOCALLY_BLOCKED); +} + +/** + * This function returns true if one of the states which indicates + * that a task is blocked waiting for a local resource is set in + * the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the state indicates that the + * assocated thread is waiting on a thread queue. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue ( + States_Control the_states +) +{ + return (the_states & STATES_WAITING_ON_THREAD_QUEUE); +} + +/** + * This function returns true if one of the states which indicates + * that a task is blocked is set in the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * + * @return This method returns true if the state indicates that the + * assocated thread is blocked. + */ +RTEMS_INLINE_ROUTINE bool _States_Is_blocked ( + States_Control the_states +) +{ + return (the_states & STATES_BLOCKED); +} + +/** + * This function returns true if any of the states in the mask + * are set in the_states, and false otherwise. + * + * @param[in] the_states is the task state set to test + * @param[in] mask is the state bits to test for + * + * @return This method returns true if the indicates state condition is set. + */ +RTEMS_INLINE_ROUTINE bool _States_Are_set ( + States_Control the_states, + States_Control mask +) +{ + return ( (the_states & mask) != STATES_READY); +} + +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif +/* end of include file */ diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/threadimpl.h index 205c704508..339ccd806e 100644 --- a/cpukit/score/include/rtems/score/threadimpl.h +++ b/cpukit/score/include/rtems/score/threadimpl.h @@ -20,6 +20,7 @@ #define _RTEMS_SCORE_THREADIMPL_H #include +#include #ifdef __cplusplus extern "C" { diff --git a/cpukit/score/inline/rtems/score/states.inl b/cpukit/score/inline/rtems/score/states.inl deleted file mode 100644 index 5dfdc4230a..0000000000 --- a/cpukit/score/inline/rtems/score/states.inl +++ /dev/null @@ -1,392 +0,0 @@ -/** - * @file - * - * @brief Inlined Routines Associated with Thread State Information - * - * This file contains the static inline implementation of the inlined - * routines associated with thread state information. - */ - -/* - * COPYRIGHT (c) 1989-2012. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - */ - -#ifndef _RTEMS_SCORE_STATES_H -# error "Never use directly; include instead." -#endif - -#ifndef _RTEMS_SCORE_STATES_INL -#define _RTEMS_SCORE_STATES_INL - -#include /* RTEMS_INLINE_ROUTINE */ - -/** - * @addtogroup ScoreStates - */ -/**@{**/ - -/** - * This function sets the given states_to_set into the current_state - * passed in. The result is returned to the user in current_state. - * - * @param[in] states_to_set is the state bits to set - * @param[in] current_state is the state set to add them to - * - * @return This method returns the updated states value. - */ -RTEMS_INLINE_ROUTINE States_Control _States_Set ( - States_Control states_to_set, - States_Control current_state -) -{ - return (current_state | states_to_set); -} - -/** - * This function clears the given states_to_clear into the current_state - * passed in. The result is returned to the user in current_state. - * - * @param[in] states_to_clear is the state bits to clean - * @param[in] current_state is the state set to remove them from - * - * @return This method returns the updated states value. - */ -RTEMS_INLINE_ROUTINE States_Control _States_Clear ( - States_Control states_to_clear, - States_Control current_state -) -{ - return (current_state & ~states_to_clear); -} - -/** - * This function returns true if the_states indicates that the - * state is READY, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_ready ( - States_Control the_states -) -{ - return (the_states == STATES_READY); -} - -/** - * This function returns true if the DORMANT state is the ONLY state - * set in the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_only_dormant ( - States_Control the_states -) -{ - return (the_states == STATES_DORMANT); -} - -/** - * This function returns true if the DORMANT state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_dormant ( - States_Control the_states -) -{ - return (the_states & STATES_DORMANT); -} - -/** - * This function returns true if the SUSPENDED state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( - States_Control the_states -) -{ - return (the_states & STATES_SUSPENDED); -} - -/** - * This function returns true if the TRANSIENT state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_transient ( - States_Control the_states -) -{ - return (the_states & STATES_TRANSIENT); -} - -/** - * This function returns true if the DELAYING state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_delaying ( - States_Control the_states -) -{ - return (the_states & STATES_DELAYING); -} - -/** - * This function returns true if the WAITING_FOR_BUFFER state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_buffer ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_BUFFER); -} - -/** - * This function returns true if the WAITING_FOR_SEGMENT state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_segment ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_SEGMENT); -} - -/** - * This function returns true if the WAITING_FOR_MESSAGE state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_message ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_MESSAGE); -} - -/** - * This function returns true if the WAITING_FOR_EVENT state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_EVENT); -} - -/** - * This function returns true if the WAITING_FOR_SYSTEM_EVENT state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_system_event ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_SYSTEM_EVENT); -} - -/** - * This function returns true if the WAITING_FOR_MUTEX state - * is set in the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_mutex ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_MUTEX); -} - -/** - * This function returns true if the WAITING_FOR_SEMAPHORE state - * is set in the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_semaphore ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_SEMAPHORE); -} - -/** - * This function returns true if the WAITING_FOR_TIME state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_time ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_TIME); -} - -/** - * This function returns true if the WAITING_FOR_TIME state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_rpc_reply ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_RPC_REPLY); -} - -/** - * This function returns true if the WAITING_FOR_PERIOD state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_period ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_PERIOD); -} - -/** - * This function returns true if the task's state is set in - * way that allows it to be interrupted by a signal. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_interruptible_by_signal ( - States_Control the_states -) -{ - return (the_states & STATES_INTERRUPTIBLE_BY_SIGNAL); - -} -/** - * This function returns true if one of the states which indicates - * that a task is blocked waiting for a local resource is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ - -RTEMS_INLINE_ROUTINE bool _States_Is_locally_blocked ( - States_Control the_states -) -{ - return (the_states & STATES_LOCALLY_BLOCKED); -} - -/** - * This function returns true if one of the states which indicates - * that a task is blocked waiting for a local resource is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the state indicates that the - * assocated thread is waiting on a thread queue. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_ON_THREAD_QUEUE); -} - -/** - * This function returns true if one of the states which indicates - * that a task is blocked is set in the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the state indicates that the - * assocated thread is blocked. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_blocked ( - States_Control the_states -) -{ - return (the_states & STATES_BLOCKED); -} - -/** - * This function returns true if any of the states in the mask - * are set in the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * @param[in] mask is the state bits to test for - * - * @return This method returns true if the indicates state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Are_set ( - States_Control the_states, - States_Control mask -) -{ - return ( (the_states & mask) != STATES_READY); -} - -/** @} */ - -#endif -/* end of include file */ diff --git a/cpukit/score/preinstall.am b/cpukit/score/preinstall.am index e236716657..8536ec4bc0 100644 --- a/cpukit/score/preinstall.am +++ b/cpukit/score/preinstall.am @@ -207,6 +207,10 @@ $(PROJECT_INCLUDE)/rtems/score/states.h: include/rtems/score/states.h $(PROJECT_ $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/states.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/states.h +$(PROJECT_INCLUDE)/rtems/score/statesimpl.h: include/rtems/score/statesimpl.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) + $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/statesimpl.h +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/statesimpl.h + $(PROJECT_INCLUDE)/rtems/score/sysstate.h: include/rtems/score/sysstate.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/sysstate.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/sysstate.h @@ -331,10 +335,6 @@ $(PROJECT_INCLUDE)/rtems/score/object.inl: inline/rtems/score/object.inl $(PROJE $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/object.inl PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/object.inl -$(PROJECT_INCLUDE)/rtems/score/states.inl: inline/rtems/score/states.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/states.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/states.inl - $(PROJECT_INCLUDE)/rtems/score/threadq.inl: inline/rtems/score/threadq.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/threadq.inl PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/threadq.inl diff --git a/cpukit/score/src/corebarrier.c b/cpukit/score/src/corebarrier.c index 4713207331..04bd875a56 100644 --- a/cpukit/score/src/corebarrier.c +++ b/cpukit/score/src/corebarrier.c @@ -18,9 +18,8 @@ #include "config.h" #endif -#include #include -#include +#include #include #include diff --git a/cpukit/score/src/corebarrierrelease.c b/cpukit/score/src/corebarrierrelease.c index 2a27e4141f..12fc3bcba2 100644 --- a/cpukit/score/src/corebarrierrelease.c +++ b/cpukit/score/src/corebarrierrelease.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/score/src/corebarrierwait.c b/cpukit/score/src/corebarrierwait.c index 465402ab82..6ea1f250c2 100644 --- a/cpukit/score/src/corebarrierwait.c +++ b/cpukit/score/src/corebarrierwait.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/score/src/coremsg.c b/cpukit/score/src/coremsg.c index d620a5246d..72e1371b40 100644 --- a/cpukit/score/src/coremsg.c +++ b/cpukit/score/src/coremsg.c @@ -18,13 +18,9 @@ #include "config.h" #endif -#include -#include -#include -#include #include -#include -#include +#include +#include #include /* diff --git a/cpukit/score/src/coremsgbroadcast.c b/cpukit/score/src/coremsgbroadcast.c index 4591d0e336..d860eb11a8 100644 --- a/cpukit/score/src/coremsgbroadcast.c +++ b/cpukit/score/src/coremsgbroadcast.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/score/src/coremsgclose.c b/cpukit/score/src/coremsgclose.c index 367357c21a..946a4f5653 100644 --- a/cpukit/score/src/coremsgclose.c +++ b/cpukit/score/src/coremsgclose.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/score/src/coremsgflush.c b/cpukit/score/src/coremsgflush.c index 4185f4f2ed..169b1472f7 100644 --- a/cpukit/score/src/coremsgflush.c +++ b/cpukit/score/src/coremsgflush.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/score/src/coremsgflushsupp.c b/cpukit/score/src/coremsgflushsupp.c index dbc62ca3dd..436e77f2c6 100644 --- a/cpukit/score/src/coremsgflushsupp.c +++ b/cpukit/score/src/coremsgflushsupp.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/score/src/coremsgflushwait.c b/cpukit/score/src/coremsgflushwait.c index 5816ce8bda..4355239497 100644 --- a/cpukit/score/src/coremsgflushwait.c +++ b/cpukit/score/src/coremsgflushwait.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/score/src/coremsginsert.c b/cpukit/score/src/coremsginsert.c index 69836df593..fca5f07150 100644 --- a/cpukit/score/src/coremsginsert.c +++ b/cpukit/score/src/coremsginsert.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/score/src/coremsgseize.c b/cpukit/score/src/coremsgseize.c index 5d64616ace..24d6f573a2 100644 --- a/cpukit/score/src/coremsgseize.c +++ b/cpukit/score/src/coremsgseize.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/score/src/coremsgsubmit.c b/cpukit/score/src/coremsgsubmit.c index 6acaadab89..09982dc2a5 100644 --- a/cpukit/score/src/coremsgsubmit.c +++ b/cpukit/score/src/coremsgsubmit.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/score/src/coremutex.c b/cpukit/score/src/coremutex.c index 8ea7d13a4d..1d0f596867 100644 --- a/cpukit/score/src/coremutex.c +++ b/cpukit/score/src/coremutex.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/score/src/coremutexflush.c b/cpukit/score/src/coremutexflush.c index 5aec9e54af..5e87f0c201 100644 --- a/cpukit/score/src/coremutexflush.c +++ b/cpukit/score/src/coremutexflush.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/score/src/coremutexseize.c b/cpukit/score/src/coremutexseize.c index dee9f7d5f7..dc74beefe3 100644 --- a/cpukit/score/src/coremutexseize.c +++ b/cpukit/score/src/coremutexseize.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/score/src/coremutexseizeintr.c b/cpukit/score/src/coremutexseizeintr.c index cc726b6135..70101d0899 100644 --- a/cpukit/score/src/coremutexseizeintr.c +++ b/cpukit/score/src/coremutexseizeintr.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/score/src/coremutexsurrender.c b/cpukit/score/src/coremutexsurrender.c index 12f84d310c..e411f77f9f 100644 --- a/cpukit/score/src/coremutexsurrender.c +++ b/cpukit/score/src/coremutexsurrender.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/score/src/corerwlock.c b/cpukit/score/src/corerwlock.c index 1f70bc662e..2d49e836d8 100644 --- a/cpukit/score/src/corerwlock.c +++ b/cpukit/score/src/corerwlock.c @@ -18,10 +18,8 @@ #include "config.h" #endif -#include #include -#include -#include +#include #include void _CORE_RWLock_Initialize( diff --git a/cpukit/score/src/corerwlockobtainread.c b/cpukit/score/src/corerwlockobtainread.c index 2447360636..fc3ce24140 100644 --- a/cpukit/score/src/corerwlockobtainread.c +++ b/cpukit/score/src/corerwlockobtainread.c @@ -20,7 +20,6 @@ #include #include -#include #include #include diff --git a/cpukit/score/src/corerwlockobtainwrite.c b/cpukit/score/src/corerwlockobtainwrite.c index 1eca63c7ed..8c00a8f975 100644 --- a/cpukit/score/src/corerwlockobtainwrite.c +++ b/cpukit/score/src/corerwlockobtainwrite.c @@ -20,7 +20,6 @@ #include #include -#include #include #include diff --git a/cpukit/score/src/corerwlockrelease.c b/cpukit/score/src/corerwlockrelease.c index c0b23e08e3..245390a4df 100644 --- a/cpukit/score/src/corerwlockrelease.c +++ b/cpukit/score/src/corerwlockrelease.c @@ -21,7 +21,6 @@ #include #include -#include #include #include diff --git a/cpukit/score/src/coresem.c b/cpukit/score/src/coresem.c index 46d0334693..0257c121ea 100644 --- a/cpukit/score/src/coresem.c +++ b/cpukit/score/src/coresem.c @@ -18,11 +18,8 @@ #include "config.h" #endif -#include -#include #include -#include -#include +#include #include void _CORE_semaphore_Initialize( diff --git a/cpukit/score/src/coresemflush.c b/cpukit/score/src/coresemflush.c index c1b68a72c0..4c691c8546 100644 --- a/cpukit/score/src/coresemflush.c +++ b/cpukit/score/src/coresemflush.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/score/src/coresemseize.c b/cpukit/score/src/coresemseize.c index 8da9ca3044..5ed5ee68ba 100644 --- a/cpukit/score/src/coresemseize.c +++ b/cpukit/score/src/coresemseize.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/score/src/coresemsurrender.c b/cpukit/score/src/coresemsurrender.c index 2a8d208a8d..59fdbebafc 100644 --- a/cpukit/score/src/coresemsurrender.c +++ b/cpukit/score/src/coresemsurrender.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include diff --git a/cpukit/score/src/corespinlock.c b/cpukit/score/src/corespinlock.c index 013178b501..0b4dba303f 100644 --- a/cpukit/score/src/corespinlock.c +++ b/cpukit/score/src/corespinlock.c @@ -21,7 +21,6 @@ #include #include -#include #include #include diff --git a/cpukit/score/src/corespinlockrelease.c b/cpukit/score/src/corespinlockrelease.c index b2c9b53021..a9c39bc65e 100644 --- a/cpukit/score/src/corespinlockrelease.c +++ b/cpukit/score/src/corespinlockrelease.c @@ -20,7 +20,6 @@ #include #include -#include #include #include diff --git a/cpukit/score/src/corespinlockwait.c b/cpukit/score/src/corespinlockwait.c index 689180a218..b8cb58fa1c 100644 --- a/cpukit/score/src/corespinlockwait.c +++ b/cpukit/score/src/corespinlockwait.c @@ -20,7 +20,6 @@ #include #include -#include #include #include diff --git a/cpukit/score/src/mpci.c b/cpukit/score/src/mpci.c index 4cfdc85f7f..043f243607 100644 --- a/cpukit/score/src/mpci.c +++ b/cpukit/score/src/mpci.c @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include diff --git a/cpukit/score/src/threaddispatchdisablelevel.c b/cpukit/score/src/threaddispatchdisablelevel.c index 439a6e6a32..d15f4b1862 100644 --- a/cpukit/score/src/threaddispatchdisablelevel.c +++ b/cpukit/score/src/threaddispatchdisablelevel.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #define NO_OWNER_CPU 0xffffffffU diff --git a/cpukit/score/src/threadq.c b/cpukit/score/src/threadq.c index 4563f0ffff..c5e694e9f3 100644 --- a/cpukit/score/src/threadq.c +++ b/cpukit/score/src/threadq.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include diff --git a/cpukit/score/src/threadqdequeue.c b/cpukit/score/src/threadqdequeue.c index 93675fb16d..4cdc8edb90 100644 --- a/cpukit/score/src/threadqdequeue.c +++ b/cpukit/score/src/threadqdequeue.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include diff --git a/cpukit/score/src/threadqenqueuefifo.c b/cpukit/score/src/threadqenqueuefifo.c index 44bdfd5988..91c6466073 100644 --- a/cpukit/score/src/threadqenqueuefifo.c +++ b/cpukit/score/src/threadqenqueuefifo.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include diff --git a/cpukit/score/src/threadqenqueuepriority.c b/cpukit/score/src/threadqenqueuepriority.c index 57117028dc..a9d0c6bf3d 100644 --- a/cpukit/score/src/threadqenqueuepriority.c +++ b/cpukit/score/src/threadqenqueuepriority.c @@ -18,14 +18,9 @@ #include "config.h" #endif -#include -#include -#include -#include -#include -#include #include -#include +#include +#include /* * Support the user forcing the unrolling to be disabled. diff --git a/cpukit/score/src/threadqextract.c b/cpukit/score/src/threadqextract.c index 3b6aac58de..9d0d40ccae 100644 --- a/cpukit/score/src/threadqextract.c +++ b/cpukit/score/src/threadqextract.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include diff --git a/cpukit/score/src/threadqextractwithproxy.c b/cpukit/score/src/threadqextractwithproxy.c index 7c8b84ba46..d7245e5f59 100644 --- a/cpukit/score/src/threadqextractwithproxy.c +++ b/cpukit/score/src/threadqextractwithproxy.c @@ -23,14 +23,8 @@ #include "config.h" #endif -#include -#include -#include -#include -#include -#include #include -#include +#include bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread diff --git a/cpukit/score/src/threadqfirst.c b/cpukit/score/src/threadqfirst.c index ef8a13175d..1108188917 100644 --- a/cpukit/score/src/threadqfirst.c +++ b/cpukit/score/src/threadqfirst.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include diff --git a/cpukit/score/src/threadqfirstfifo.c b/cpukit/score/src/threadqfirstfifo.c index 08d90ce1c0..9b47302ed9 100644 --- a/cpukit/score/src/threadqfirstfifo.c +++ b/cpukit/score/src/threadqfirstfifo.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include diff --git a/cpukit/score/src/threadqfirstpriority.c b/cpukit/score/src/threadqfirstpriority.c index 5b2d56a30e..4a75a8b812 100644 --- a/cpukit/score/src/threadqfirstpriority.c +++ b/cpukit/score/src/threadqfirstpriority.c @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include diff --git a/cpukit/score/src/threadqflush.c b/cpukit/score/src/threadqflush.c index 8209d5802c..46eb8391d9 100644 --- a/cpukit/score/src/threadqflush.c +++ b/cpukit/score/src/threadqflush.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include diff --git a/cpukit/score/src/threadqrequeue.c b/cpukit/score/src/threadqrequeue.c index 15cf0119b4..c2a8cad5b7 100644 --- a/cpukit/score/src/threadqrequeue.c +++ b/cpukit/score/src/threadqrequeue.c @@ -18,14 +18,8 @@ #include "config.h" #endif -#include -#include -#include -#include -#include -#include #include -#include +#include void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, -- cgit v1.2.3