summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-10-26 20:19:02 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-10-26 20:19:02 +0000
commit0e87deaa296733d0ac599bbc1b224c0232b8fc69 (patch)
tree53636dee7c321484a2885bdbeb74ffa231282ea2 /cpukit
parent2007-10-26 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-0e87deaa296733d0ac599bbc1b224c0232b8fc69.tar.bz2
2007-10-26 Joel Sherrill <joel.sherrill@OARcorp.com>
* itron/src/can_wup.c, itron/src/chg_pri.c, itron/src/del_mbf.c, itron/src/del_mbx.c, itron/src/del_sem.c, itron/src/del_tsk.c, itron/src/frsm_tsk.c, itron/src/ref_mbf.c, itron/src/ref_mbx.c, itron/src/ref_sem.c, itron/src/ref_tsk.c, itron/src/rel_wai.c, itron/src/rsm_tsk.c, itron/src/sig_sem.c, itron/src/snd_mbx.c, itron/src/sta_tsk.c, itron/src/sus_tsk.c, itron/src/ter_tsk.c, itron/src/trcv_mbf.c, itron/src/trcv_mbx.c, itron/src/tsnd_mbf.c, itron/src/twai_sem.c, posix/src/cancel.c, posix/src/conddestroy.c, posix/src/condinit.c, posix/src/condsignalsupp.c, posix/src/condwaitsupp.c, posix/src/keydelete.c, posix/src/keygetspecific.c, posix/src/keysetspecific.c, posix/src/mqueueclose.c, posix/src/mqueuegetattr.c, posix/src/mqueuenotify.c, posix/src/mqueuerecvsupp.c, posix/src/mqueuesendsupp.c, posix/src/mqueuesetattr.c, posix/src/mutexdestroy.c, posix/src/mutexgetprioceiling.c, posix/src/mutexinit.c, posix/src/mutexlocksupp.c, posix/src/mutexsetprioceiling.c, posix/src/mutexunlock.c, posix/src/pbarrierdestroy.c, posix/src/pbarrierwait.c, posix/src/prwlockdestroy.c, posix/src/prwlockrdlock.c, posix/src/prwlocktimedrdlock.c, posix/src/prwlocktimedwrlock.c, posix/src/prwlocktryrdlock.c, posix/src/prwlocktrywrlock.c, posix/src/prwlockunlock.c, posix/src/prwlockwrlock.c, posix/src/pspindestroy.c, posix/src/pspinlock.c, posix/src/pspintrylock.c, posix/src/pspinunlock.c, posix/src/pthreaddetach.c, posix/src/pthreadequal.c, posix/src/pthreadgetschedparam.c, posix/src/pthreadjoin.c, posix/src/pthreadkill.c, posix/src/pthreadsetschedparam.c, posix/src/ptimer1.c, posix/src/semaphorewaitsupp.c, posix/src/semclose.c, posix/src/semdestroy.c, posix/src/semgetvalue.c, posix/src/sempost.c, posix/src/types.c, rtems/src/barrierdelete.c, rtems/src/barrierrelease.c, rtems/src/barrierwait.c, rtems/src/dpmemdelete.c, rtems/src/dpmemexternal2internal.c, rtems/src/dpmeminternal2external.c, rtems/src/eventsend.c, rtems/src/eventtimeout.c, rtems/src/msgqbroadcast.c, rtems/src/msgqdelete.c, rtems/src/msgqflush.c, rtems/src/msgqgetnumberpending.c, rtems/src/msgqreceive.c, rtems/src/msgqsend.c, rtems/src/msgqurgent.c, rtems/src/partdelete.c, rtems/src/partgetbuffer.c, rtems/src/partreturnbuffer.c, rtems/src/ratemoncancel.c, rtems/src/ratemondelete.c, rtems/src/ratemongetstatistics.c, rtems/src/ratemongetstatus.c, rtems/src/ratemonperiod.c, rtems/src/ratemonresetstatistics.c, rtems/src/ratemontimeout.c, rtems/src/regiondelete.c, rtems/src/regionextend.c, rtems/src/regiongetfreeinfo.c, rtems/src/regiongetinfo.c, rtems/src/regiongetsegment.c, rtems/src/regiongetsegmentsize.c, rtems/src/regionresizesegment.c, rtems/src/regionreturnsegment.c, rtems/src/semdelete.c, rtems/src/semflush.c, rtems/src/semobtain.c, rtems/src/semrelease.c, rtems/src/signalsend.c, rtems/src/taskdelete.c, rtems/src/taskgetnote.c, rtems/src/taskissuspended.c, rtems/src/taskrestart.c, rtems/src/taskresume.c, rtems/src/tasksetnote.c, rtems/src/tasksetpriority.c, rtems/src/taskstart.c, rtems/src/tasksuspend.c, rtems/src/taskvariableadd.c, rtems/src/taskvariabledelete.c, rtems/src/taskvariableget.c, rtems/src/timercancel.c, rtems/src/timerdelete.c, rtems/src/timerfireafter.c, rtems/src/timerfirewhen.c, rtems/src/timergetinfo.c, rtems/src/timerreset.c, rtems/src/timerserverfireafter.c, rtems/src/timerserverfirewhen.c, sapi/src/extensiondelete.c, score/include/rtems/score/object.h, score/src/corerwlocktimeout.c, score/src/mpci.c, score/src/objectgetnameasstring.c, score/src/threaddelayended.c, score/src/threadqtimeout.c: When multiprocessing is disabled, do not even allow the constant OBJECTS_REMOTE to appear in the source. Even at -O2, the presence of a case OBJECTS_REMOTE in each id->pointer _Objects_Get switch results in the generation of binary code which can NOT be reached.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog69
-rw-r--r--cpukit/itron/src/can_wup.c4
-rw-r--r--cpukit/itron/src/chg_pri.c4
-rw-r--r--cpukit/itron/src/del_mbf.c4
-rw-r--r--cpukit/itron/src/del_mbx.c6
-rw-r--r--cpukit/itron/src/del_sem.c4
-rw-r--r--cpukit/itron/src/del_tsk.c4
-rw-r--r--cpukit/itron/src/frsm_tsk.c4
-rw-r--r--cpukit/itron/src/ref_mbf.c4
-rw-r--r--cpukit/itron/src/ref_mbx.c4
-rw-r--r--cpukit/itron/src/ref_sem.c4
-rw-r--r--cpukit/itron/src/ref_tsk.c4
-rw-r--r--cpukit/itron/src/rel_wai.c4
-rw-r--r--cpukit/itron/src/rsm_tsk.c2
-rw-r--r--cpukit/itron/src/sig_sem.c4
-rw-r--r--cpukit/itron/src/snd_mbx.c4
-rw-r--r--cpukit/itron/src/sta_tsk.c4
-rw-r--r--cpukit/itron/src/sus_tsk.c4
-rw-r--r--cpukit/itron/src/ter_tsk.c4
-rw-r--r--cpukit/itron/src/trcv_mbf.c4
-rw-r--r--cpukit/itron/src/trcv_mbx.c4
-rw-r--r--cpukit/itron/src/tsnd_mbf.c4
-rw-r--r--cpukit/itron/src/twai_sem.c4
-rw-r--r--cpukit/posix/src/cancel.c2
-rw-r--r--cpukit/posix/src/conddestroy.c2
-rw-r--r--cpukit/posix/src/condinit.c2
-rw-r--r--cpukit/posix/src/condsignalsupp.c2
-rw-r--r--cpukit/posix/src/condwaitsupp.c2
-rw-r--r--cpukit/posix/src/keydelete.c4
-rw-r--r--cpukit/posix/src/keygetspecific.c4
-rw-r--r--cpukit/posix/src/keysetspecific.c4
-rw-r--r--cpukit/posix/src/mqueueclose.c2
-rw-r--r--cpukit/posix/src/mqueuegetattr.c2
-rw-r--r--cpukit/posix/src/mqueuenotify.c2
-rw-r--r--cpukit/posix/src/mqueuerecvsupp.c2
-rw-r--r--cpukit/posix/src/mqueuesendsupp.c2
-rw-r--r--cpukit/posix/src/mqueuesetattr.c2
-rw-r--r--cpukit/posix/src/mutexdestroy.c2
-rw-r--r--cpukit/posix/src/mutexgetprioceiling.c2
-rw-r--r--cpukit/posix/src/mutexinit.c2
-rw-r--r--cpukit/posix/src/mutexlocksupp.c2
-rw-r--r--cpukit/posix/src/mutexsetprioceiling.c2
-rw-r--r--cpukit/posix/src/mutexunlock.c2
-rw-r--r--cpukit/posix/src/pbarrierdestroy.c4
-rw-r--r--cpukit/posix/src/pbarrierwait.c4
-rw-r--r--cpukit/posix/src/prwlockdestroy.c4
-rw-r--r--cpukit/posix/src/prwlockrdlock.c4
-rw-r--r--cpukit/posix/src/prwlocktimedrdlock.c4
-rw-r--r--cpukit/posix/src/prwlocktimedwrlock.c4
-rw-r--r--cpukit/posix/src/prwlocktryrdlock.c4
-rw-r--r--cpukit/posix/src/prwlocktrywrlock.c4
-rw-r--r--cpukit/posix/src/prwlockunlock.c4
-rw-r--r--cpukit/posix/src/prwlockwrlock.c4
-rw-r--r--cpukit/posix/src/pspindestroy.c4
-rw-r--r--cpukit/posix/src/pspinlock.c4
-rw-r--r--cpukit/posix/src/pspintrylock.c4
-rw-r--r--cpukit/posix/src/pspinunlock.c4
-rw-r--r--cpukit/posix/src/pthreaddetach.c6
-rw-r--r--cpukit/posix/src/pthreadequal.c4
-rw-r--r--cpukit/posix/src/pthreadgetschedparam.c6
-rw-r--r--cpukit/posix/src/pthreadjoin.c6
-rw-r--r--cpukit/posix/src/pthreadkill.c6
-rw-r--r--cpukit/posix/src/pthreadsetschedparam.c4
-rw-r--r--cpukit/posix/src/ptimer1.c8
-rw-r--r--cpukit/posix/src/semaphorewaitsupp.c2
-rw-r--r--cpukit/posix/src/semclose.c2
-rw-r--r--cpukit/posix/src/semdestroy.c2
-rw-r--r--cpukit/posix/src/semgetvalue.c2
-rw-r--r--cpukit/posix/src/sempost.c2
-rw-r--r--cpukit/posix/src/types.c2
-rw-r--r--cpukit/rtems/src/barrierdelete.c4
-rw-r--r--cpukit/rtems/src/barrierrelease.c4
-rw-r--r--cpukit/rtems/src/barrierwait.c4
-rw-r--r--cpukit/rtems/src/dpmemdelete.c4
-rw-r--r--cpukit/rtems/src/dpmemexternal2internal.c4
-rw-r--r--cpukit/rtems/src/dpmeminternal2external.c4
-rw-r--r--cpukit/rtems/src/eventsend.c4
-rw-r--r--cpukit/rtems/src/eventtimeout.c4
-rw-r--r--cpukit/rtems/src/msgqbroadcast.c4
-rw-r--r--cpukit/rtems/src/msgqdelete.c4
-rw-r--r--cpukit/rtems/src/msgqflush.c4
-rw-r--r--cpukit/rtems/src/msgqgetnumberpending.c4
-rw-r--r--cpukit/rtems/src/msgqreceive.c4
-rw-r--r--cpukit/rtems/src/msgqsend.c2
-rw-r--r--cpukit/rtems/src/msgqurgent.c2
-rw-r--r--cpukit/rtems/src/partdelete.c4
-rw-r--r--cpukit/rtems/src/partgetbuffer.c4
-rw-r--r--cpukit/rtems/src/partreturnbuffer.c4
-rw-r--r--cpukit/rtems/src/ratemoncancel.c2
-rw-r--r--cpukit/rtems/src/ratemondelete.c2
-rw-r--r--cpukit/rtems/src/ratemongetstatistics.c2
-rw-r--r--cpukit/rtems/src/ratemongetstatus.c2
-rw-r--r--cpukit/rtems/src/ratemonperiod.c2
-rw-r--r--cpukit/rtems/src/ratemonresetstatistics.c2
-rw-r--r--cpukit/rtems/src/ratemontimeout.c2
-rw-r--r--cpukit/rtems/src/regiondelete.c4
-rw-r--r--cpukit/rtems/src/regionextend.c4
-rw-r--r--cpukit/rtems/src/regiongetfreeinfo.c4
-rw-r--r--cpukit/rtems/src/regiongetinfo.c4
-rw-r--r--cpukit/rtems/src/regiongetsegment.c4
-rw-r--r--cpukit/rtems/src/regiongetsegmentsize.c4
-rw-r--r--cpukit/rtems/src/regionresizesegment.c4
-rw-r--r--cpukit/rtems/src/regionreturnsegment.c4
-rw-r--r--cpukit/rtems/src/semdelete.c4
-rw-r--r--cpukit/rtems/src/semflush.c4
-rw-r--r--cpukit/rtems/src/semobtain.c4
-rw-r--r--cpukit/rtems/src/semrelease.c4
-rw-r--r--cpukit/rtems/src/signalsend.c4
-rw-r--r--cpukit/rtems/src/taskdelete.c6
-rw-r--r--cpukit/rtems/src/taskgetnote.c4
-rw-r--r--cpukit/rtems/src/taskissuspended.c5
-rw-r--r--cpukit/rtems/src/taskrestart.c4
-rw-r--r--cpukit/rtems/src/taskresume.c4
-rw-r--r--cpukit/rtems/src/tasksetnote.c4
-rw-r--r--cpukit/rtems/src/tasksetpriority.c4
-rw-r--r--cpukit/rtems/src/taskstart.c4
-rw-r--r--cpukit/rtems/src/tasksuspend.c4
-rw-r--r--cpukit/rtems/src/taskvariableadd.c8
-rw-r--r--cpukit/rtems/src/taskvariabledelete.c9
-rw-r--r--cpukit/rtems/src/taskvariableget.c8
-rw-r--r--cpukit/rtems/src/timercancel.c4
-rw-r--r--cpukit/rtems/src/timerdelete.c4
-rw-r--r--cpukit/rtems/src/timerfireafter.c4
-rw-r--r--cpukit/rtems/src/timerfirewhen.c4
-rw-r--r--cpukit/rtems/src/timergetinfo.c4
-rw-r--r--cpukit/rtems/src/timerreset.c4
-rw-r--r--cpukit/rtems/src/timerserverfireafter.c4
-rw-r--r--cpukit/rtems/src/timerserverfirewhen.c4
-rw-r--r--cpukit/sapi/src/extensiondelete.c4
-rw-r--r--cpukit/score/include/rtems/score/object.h8
-rw-r--r--cpukit/score/src/corerwlocktimeout.c4
-rw-r--r--cpukit/score/src/mpci.c4
-rw-r--r--cpukit/score/src/objectgetnameasstring.c2
-rw-r--r--cpukit/score/src/threaddelayended.c4
-rw-r--r--cpukit/score/src/threadqtimeout.c4
135 files changed, 414 insertions, 157 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 3869aa4d83..50b80d8fd2 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,5 +1,74 @@
2007-10-26 Joel Sherrill <joel.sherrill@OARcorp.com>
+ * itron/src/can_wup.c, itron/src/chg_pri.c, itron/src/del_mbf.c,
+ itron/src/del_mbx.c, itron/src/del_sem.c, itron/src/del_tsk.c,
+ itron/src/frsm_tsk.c, itron/src/ref_mbf.c, itron/src/ref_mbx.c,
+ itron/src/ref_sem.c, itron/src/ref_tsk.c, itron/src/rel_wai.c,
+ itron/src/rsm_tsk.c, itron/src/sig_sem.c, itron/src/snd_mbx.c,
+ itron/src/sta_tsk.c, itron/src/sus_tsk.c, itron/src/ter_tsk.c,
+ itron/src/trcv_mbf.c, itron/src/trcv_mbx.c, itron/src/tsnd_mbf.c,
+ itron/src/twai_sem.c, posix/src/cancel.c, posix/src/conddestroy.c,
+ posix/src/condinit.c, posix/src/condsignalsupp.c,
+ posix/src/condwaitsupp.c, posix/src/keydelete.c,
+ posix/src/keygetspecific.c, posix/src/keysetspecific.c,
+ posix/src/mqueueclose.c, posix/src/mqueuegetattr.c,
+ posix/src/mqueuenotify.c, posix/src/mqueuerecvsupp.c,
+ posix/src/mqueuesendsupp.c, posix/src/mqueuesetattr.c,
+ posix/src/mutexdestroy.c, posix/src/mutexgetprioceiling.c,
+ posix/src/mutexinit.c, posix/src/mutexlocksupp.c,
+ posix/src/mutexsetprioceiling.c, posix/src/mutexunlock.c,
+ posix/src/pbarrierdestroy.c, posix/src/pbarrierwait.c,
+ posix/src/prwlockdestroy.c, posix/src/prwlockrdlock.c,
+ posix/src/prwlocktimedrdlock.c, posix/src/prwlocktimedwrlock.c,
+ posix/src/prwlocktryrdlock.c, posix/src/prwlocktrywrlock.c,
+ posix/src/prwlockunlock.c, posix/src/prwlockwrlock.c,
+ posix/src/pspindestroy.c, posix/src/pspinlock.c,
+ posix/src/pspintrylock.c, posix/src/pspinunlock.c,
+ posix/src/pthreaddetach.c, posix/src/pthreadequal.c,
+ posix/src/pthreadgetschedparam.c, posix/src/pthreadjoin.c,
+ posix/src/pthreadkill.c, posix/src/pthreadsetschedparam.c,
+ posix/src/ptimer1.c, posix/src/semaphorewaitsupp.c,
+ posix/src/semclose.c, posix/src/semdestroy.c,
+ posix/src/semgetvalue.c, posix/src/sempost.c, posix/src/types.c,
+ rtems/src/barrierdelete.c, rtems/src/barrierrelease.c,
+ rtems/src/barrierwait.c, rtems/src/dpmemdelete.c,
+ rtems/src/dpmemexternal2internal.c,
+ rtems/src/dpmeminternal2external.c, rtems/src/eventsend.c,
+ rtems/src/eventtimeout.c, rtems/src/msgqbroadcast.c,
+ rtems/src/msgqdelete.c, rtems/src/msgqflush.c,
+ rtems/src/msgqgetnumberpending.c, rtems/src/msgqreceive.c,
+ rtems/src/msgqsend.c, rtems/src/msgqurgent.c, rtems/src/partdelete.c,
+ rtems/src/partgetbuffer.c, rtems/src/partreturnbuffer.c,
+ rtems/src/ratemoncancel.c, rtems/src/ratemondelete.c,
+ rtems/src/ratemongetstatistics.c, rtems/src/ratemongetstatus.c,
+ rtems/src/ratemonperiod.c, rtems/src/ratemonresetstatistics.c,
+ rtems/src/ratemontimeout.c, rtems/src/regiondelete.c,
+ rtems/src/regionextend.c, rtems/src/regiongetfreeinfo.c,
+ rtems/src/regiongetinfo.c, rtems/src/regiongetsegment.c,
+ rtems/src/regiongetsegmentsize.c, rtems/src/regionresizesegment.c,
+ rtems/src/regionreturnsegment.c, rtems/src/semdelete.c,
+ rtems/src/semflush.c, rtems/src/semobtain.c, rtems/src/semrelease.c,
+ rtems/src/signalsend.c, rtems/src/taskdelete.c,
+ rtems/src/taskgetnote.c, rtems/src/taskissuspended.c,
+ rtems/src/taskrestart.c, rtems/src/taskresume.c,
+ rtems/src/tasksetnote.c, rtems/src/tasksetpriority.c,
+ rtems/src/taskstart.c, rtems/src/tasksuspend.c,
+ rtems/src/taskvariableadd.c, rtems/src/taskvariabledelete.c,
+ rtems/src/taskvariableget.c, rtems/src/timercancel.c,
+ rtems/src/timerdelete.c, rtems/src/timerfireafter.c,
+ rtems/src/timerfirewhen.c, rtems/src/timergetinfo.c,
+ rtems/src/timerreset.c, rtems/src/timerserverfireafter.c,
+ rtems/src/timerserverfirewhen.c, sapi/src/extensiondelete.c,
+ score/include/rtems/score/object.h, score/src/corerwlocktimeout.c,
+ score/src/mpci.c, score/src/objectgetnameasstring.c,
+ score/src/threaddelayended.c, score/src/threadqtimeout.c: When
+ multiprocessing is disabled, do not even allow the constant
+ OBJECTS_REMOTE to appear in the source. Even at -O2, the presence of
+ a case OBJECTS_REMOTE in each id->pointer _Objects_Get switch results
+ in the generation of binary code which can NOT be reached.
+
+2007-10-26 Joel Sherrill <joel.sherrill@OARcorp.com>
+
* score/Makefile.am, score/include/rtems/score/thread.h,
score/inline/rtems/score/thread.inl: No longer inline _Thread_Get. It
resulted in unnessary code explosion, many uncovered paths when
diff --git a/cpukit/itron/src/can_wup.c b/cpukit/itron/src/can_wup.c
index 4a7efc639d..6453dede3f 100644
--- a/cpukit/itron/src/can_wup.c
+++ b/cpukit/itron/src/can_wup.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -37,7 +37,9 @@ ER can_wup(
the_thread = _ITRON_Task_Get( tskid, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return _ITRON_Task_Clarify_get_id_error( tskid );
diff --git a/cpukit/itron/src/chg_pri.c b/cpukit/itron/src/chg_pri.c
index a548535db4..2bb4a25090 100644
--- a/cpukit/itron/src/chg_pri.c
+++ b/cpukit/itron/src/chg_pri.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -38,7 +38,9 @@ ER chg_pri(
the_thread = _ITRON_Task_Get( tskid, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return _ITRON_Task_Clarify_get_id_error( tskid );
diff --git a/cpukit/itron/src/del_mbf.c b/cpukit/itron/src/del_mbf.c
index 0fea912942..b94c25ddba 100644
--- a/cpukit/itron/src/del_mbf.c
+++ b/cpukit/itron/src/del_mbf.c
@@ -1,7 +1,7 @@
/*
* ITRON Message Buffer Manager
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -33,7 +33,9 @@ ER del_mbf(
the_message_buffer = _ITRON_Message_buffer_Get(mbfid, &location);
switch (location) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR: /* Multiprocessing not supported */
return _ITRON_Message_buffer_Clarify_get_id_error(mbfid);
diff --git a/cpukit/itron/src/del_mbx.c b/cpukit/itron/src/del_mbx.c
index e06bea2fb5..5e3c7b353d 100644
--- a/cpukit/itron/src/del_mbx.c
+++ b/cpukit/itron/src/del_mbx.c
@@ -1,7 +1,7 @@
/*
* ITRON 3.0 Mailbox Manager
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -47,8 +47,10 @@ ER del_mbx(
the_mailbox= _ITRON_Mailbox_Get( mbxid, &location );
switch ( location ) {
- case OBJECTS_ERROR:
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
+ case OBJECTS_ERROR:
return _ITRON_Mailbox_Clarify_get_id_error( mbxid );
case OBJECTS_LOCAL:
diff --git a/cpukit/itron/src/del_sem.c b/cpukit/itron/src/del_sem.c
index 94368c4a41..404e632676 100644
--- a/cpukit/itron/src/del_sem.c
+++ b/cpukit/itron/src/del_sem.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -34,7 +34,9 @@ ER del_sem(
the_semaphore = _ITRON_Semaphore_Get( semid, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* Multiprocessing not supported */
+#endif
case OBJECTS_ERROR:
return _ITRON_Semaphore_Clarify_get_id_error( semid );
diff --git a/cpukit/itron/src/del_tsk.c b/cpukit/itron/src/del_tsk.c
index 9d1ddb72b5..b388602114 100644
--- a/cpukit/itron/src/del_tsk.c
+++ b/cpukit/itron/src/del_tsk.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -38,7 +38,9 @@ ER del_tsk(
the_thread = _ITRON_Task_Get( tskid, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return _ITRON_Task_Clarify_get_id_error( tskid );
diff --git a/cpukit/itron/src/frsm_tsk.c b/cpukit/itron/src/frsm_tsk.c
index 7df43bce44..f1bb36ec5d 100644
--- a/cpukit/itron/src/frsm_tsk.c
+++ b/cpukit/itron/src/frsm_tsk.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -37,7 +37,9 @@ ER frsm_tsk(
the_thread = _ITRON_Task_Get( tskid, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return _ITRON_Task_Clarify_get_id_error( tskid );
diff --git a/cpukit/itron/src/ref_mbf.c b/cpukit/itron/src/ref_mbf.c
index f7f076e65b..fd474ec62e 100644
--- a/cpukit/itron/src/ref_mbf.c
+++ b/cpukit/itron/src/ref_mbf.c
@@ -1,7 +1,7 @@
/*
* ITRON Message Buffer Manager
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -38,7 +38,9 @@ ER ref_mbf(
the_message_buffer = _ITRON_Message_buffer_Get( mbfid, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* Multiprocessing not supported */
+#endif
case OBJECTS_ERROR:
return _ITRON_Message_buffer_Clarify_get_id_error( mbfid );
diff --git a/cpukit/itron/src/ref_mbx.c b/cpukit/itron/src/ref_mbx.c
index 6e100e011e..214e52efbe 100644
--- a/cpukit/itron/src/ref_mbx.c
+++ b/cpukit/itron/src/ref_mbx.c
@@ -1,7 +1,7 @@
/*
* ITRON 3.0 Mailbox Manager
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -38,7 +38,9 @@ ER ref_mbx(
the_mailbox = _ITRON_Mailbox_Get( mbxid, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return _ITRON_Mailbox_Clarify_get_id_error( mbxid );
diff --git a/cpukit/itron/src/ref_sem.c b/cpukit/itron/src/ref_sem.c
index 9a46cca38d..852e32bade 100644
--- a/cpukit/itron/src/ref_sem.c
+++ b/cpukit/itron/src/ref_sem.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -38,7 +38,9 @@ ER ref_sem(
the_semaphore = _ITRON_Semaphore_Get( semid, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* Multiprocessing not supported */
+#endif
case OBJECTS_ERROR:
return _ITRON_Semaphore_Clarify_get_id_error( semid );
diff --git a/cpukit/itron/src/ref_tsk.c b/cpukit/itron/src/ref_tsk.c
index 6b951a5c8a..7804e96f44 100644
--- a/cpukit/itron/src/ref_tsk.c
+++ b/cpukit/itron/src/ref_tsk.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -42,7 +42,9 @@ ER ref_tsk(
the_thread = _ITRON_Task_Get( tskid, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return _ITRON_Task_Clarify_get_id_error( tskid );
diff --git a/cpukit/itron/src/rel_wai.c b/cpukit/itron/src/rel_wai.c
index 49b247d660..286a015c51 100644
--- a/cpukit/itron/src/rel_wai.c
+++ b/cpukit/itron/src/rel_wai.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -36,7 +36,9 @@ ER rel_wai(
the_thread = _ITRON_Task_Get( tskid, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return _ITRON_Task_Clarify_get_id_error( tskid );
diff --git a/cpukit/itron/src/rsm_tsk.c b/cpukit/itron/src/rsm_tsk.c
index 0c99a3e614..cb0de0d10e 100644
--- a/cpukit/itron/src/rsm_tsk.c
+++ b/cpukit/itron/src/rsm_tsk.c
@@ -37,7 +37,9 @@ ER rsm_tsk(
the_thread = _ITRON_Task_Get( tskid, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return _ITRON_Task_Clarify_get_id_error( tskid );
diff --git a/cpukit/itron/src/sig_sem.c b/cpukit/itron/src/sig_sem.c
index cde504891c..6098ab90a1 100644
--- a/cpukit/itron/src/sig_sem.c
+++ b/cpukit/itron/src/sig_sem.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -35,7 +35,9 @@ ER sig_sem(
the_semaphore = _ITRON_Semaphore_Get( semid, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* Multiprocessing not supported */
+#endif
case OBJECTS_ERROR:
return _ITRON_Semaphore_Clarify_get_id_error( semid );
diff --git a/cpukit/itron/src/snd_mbx.c b/cpukit/itron/src/snd_mbx.c
index f257ab3b41..82530de68e 100644
--- a/cpukit/itron/src/snd_mbx.c
+++ b/cpukit/itron/src/snd_mbx.c
@@ -1,7 +1,7 @@
/*
* ITRON 3.0 Mailbox Manager
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -40,7 +40,9 @@ ER snd_msg(
the_mailbox = _ITRON_Mailbox_Get( mbxid, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return _ITRON_Mailbox_Clarify_get_id_error( mbxid );
diff --git a/cpukit/itron/src/sta_tsk.c b/cpukit/itron/src/sta_tsk.c
index a1beeade23..8b7f73fca2 100644
--- a/cpukit/itron/src/sta_tsk.c
+++ b/cpukit/itron/src/sta_tsk.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -39,7 +39,9 @@ ER sta_tsk(
the_thread = _ITRON_Task_Get( tskid, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return _ITRON_Task_Clarify_get_id_error( tskid );
diff --git a/cpukit/itron/src/sus_tsk.c b/cpukit/itron/src/sus_tsk.c
index 7261a171df..d586b9bf33 100644
--- a/cpukit/itron/src/sus_tsk.c
+++ b/cpukit/itron/src/sus_tsk.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -42,7 +42,9 @@ ER sus_tsk(
the_thread = _ITRON_Task_Get( tskid, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return _ITRON_Task_Clarify_get_id_error( tskid );
diff --git a/cpukit/itron/src/ter_tsk.c b/cpukit/itron/src/ter_tsk.c
index f3111f5d46..bdf22d7373 100644
--- a/cpukit/itron/src/ter_tsk.c
+++ b/cpukit/itron/src/ter_tsk.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -37,7 +37,9 @@ ER ter_tsk(
the_thread = _ITRON_Task_Get( tskid, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return _ITRON_Task_Clarify_get_id_error( tskid );
diff --git a/cpukit/itron/src/trcv_mbf.c b/cpukit/itron/src/trcv_mbf.c
index 0e05327a54..ef3e5372d9 100644
--- a/cpukit/itron/src/trcv_mbf.c
+++ b/cpukit/itron/src/trcv_mbf.c
@@ -1,7 +1,7 @@
/*
* ITRON Message Buffer Manager
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -55,7 +55,9 @@ ER trcv_mbf(
the_message_buffer = _ITRON_Message_buffer_Get(mbfid, &location);
switch (location) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR: /* Multiprocessing not supported */
return _ITRON_Message_buffer_Clarify_get_id_error(mbfid);
diff --git a/cpukit/itron/src/trcv_mbx.c b/cpukit/itron/src/trcv_mbx.c
index 62a3098140..8b8dec0168 100644
--- a/cpukit/itron/src/trcv_mbx.c
+++ b/cpukit/itron/src/trcv_mbx.c
@@ -1,7 +1,7 @@
/*
* ITRON 3.0 Mailbox Manager
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -53,7 +53,9 @@ ER trcv_msg(
the_mailbox = _ITRON_Mailbox_Get( mbxid, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return _ITRON_Mailbox_Clarify_get_id_error( mbxid );
diff --git a/cpukit/itron/src/tsnd_mbf.c b/cpukit/itron/src/tsnd_mbf.c
index 841d0b8756..bd6cc33fbf 100644
--- a/cpukit/itron/src/tsnd_mbf.c
+++ b/cpukit/itron/src/tsnd_mbf.c
@@ -1,7 +1,7 @@
/*
* ITRON Message Buffer Manager
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -56,7 +56,9 @@ ER tsnd_mbf(
the_message_buffer = _ITRON_Message_buffer_Get(mbfid, &location);
switch (location) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR: /* Multiprocessing not supported */
return _ITRON_Message_buffer_Clarify_get_id_error(mbfid);
diff --git a/cpukit/itron/src/twai_sem.c b/cpukit/itron/src/twai_sem.c
index 90b3121051..9004c88e76 100644
--- a/cpukit/itron/src/twai_sem.c
+++ b/cpukit/itron/src/twai_sem.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -50,7 +50,9 @@ ER twai_sem(
the_semaphore = _ITRON_Semaphore_Get( semid, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* Multiprocessing not supported */
+#endif
case OBJECTS_ERROR:
return _ITRON_Semaphore_Clarify_get_id_error( semid );
diff --git a/cpukit/posix/src/cancel.c b/cpukit/posix/src/cancel.c
index 2b72be4aef..0ec720fa2e 100644
--- a/cpukit/posix/src/cancel.c
+++ b/cpukit/posix/src/cancel.c
@@ -42,8 +42,10 @@ int pthread_cancel(
switch ( location ) {
case OBJECTS_ERROR:
return EINVAL;
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
return POSIX_MP_NOT_IMPLEMENTED();
+#endif
case OBJECTS_LOCAL:
thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];
diff --git a/cpukit/posix/src/conddestroy.c b/cpukit/posix/src/conddestroy.c
index 43f7045de6..182e7d8fed 100644
--- a/cpukit/posix/src/conddestroy.c
+++ b/cpukit/posix/src/conddestroy.c
@@ -32,8 +32,8 @@ int pthread_cond_destroy(
the_cond = _POSIX_Condition_variables_Get( cond, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
return POSIX_MP_NOT_IMPLEMENTED();
return EINVAL;
diff --git a/cpukit/posix/src/condinit.c b/cpukit/posix/src/condinit.c
index 319cd4383a..6767ee3dd4 100644
--- a/cpukit/posix/src/condinit.c
+++ b/cpukit/posix/src/condinit.c
@@ -39,7 +39,7 @@ int pthread_cond_init(
*/
if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )
- return POSIX_MP_NOT_IMPLEMENTED();
+ return EINVAL;
if ( !the_attr->is_initialized )
return EINVAL;
diff --git a/cpukit/posix/src/condsignalsupp.c b/cpukit/posix/src/condsignalsupp.c
index 5fad8e0ead..016ef9b7b8 100644
--- a/cpukit/posix/src/condsignalsupp.c
+++ b/cpukit/posix/src/condsignalsupp.c
@@ -36,8 +36,8 @@ int _POSIX_Condition_variables_Signal_support(
the_cond = _POSIX_Condition_variables_Get( cond, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
return POSIX_MP_NOT_IMPLEMENTED();
return EINVAL;
diff --git a/cpukit/posix/src/condwaitsupp.c b/cpukit/posix/src/condwaitsupp.c
index 02780779bf..a93a6306b3 100644
--- a/cpukit/posix/src/condwaitsupp.c
+++ b/cpukit/posix/src/condwaitsupp.c
@@ -45,8 +45,8 @@ int _POSIX_Condition_variables_Wait_support(
the_cond = _POSIX_Condition_variables_Get( cond, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
return POSIX_MP_NOT_IMPLEMENTED();
return EINVAL;
diff --git a/cpukit/posix/src/keydelete.c b/cpukit/posix/src/keydelete.c
index 364108046b..65b5d8e8df 100644
--- a/cpukit/posix/src/keydelete.c
+++ b/cpukit/posix/src/keydelete.c
@@ -31,8 +31,10 @@ int pthread_key_delete(
the_key = _POSIX_Keys_Get( key, &location );
switch ( location ) {
- case OBJECTS_ERROR:
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never happen */
+#endif
+ case OBJECTS_ERROR:
return EINVAL;
case OBJECTS_LOCAL:
_Objects_Close( &_POSIX_Keys_Information, &the_key->Object );
diff --git a/cpukit/posix/src/keygetspecific.c b/cpukit/posix/src/keygetspecific.c
index 01e5549512..6af4f3d8b7 100644
--- a/cpukit/posix/src/keygetspecific.c
+++ b/cpukit/posix/src/keygetspecific.c
@@ -33,8 +33,10 @@ void *pthread_getspecific(
the_key = _POSIX_Keys_Get( key, &location );
switch ( location ) {
- case OBJECTS_ERROR:
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never happen */
+#endif
+ case OBJECTS_ERROR:
return NULL;
case OBJECTS_LOCAL:
api = _Objects_Get_API( _Thread_Executing->Object.id );
diff --git a/cpukit/posix/src/keysetspecific.c b/cpukit/posix/src/keysetspecific.c
index 63370b4adf..f510af4e5b 100644
--- a/cpukit/posix/src/keysetspecific.c
+++ b/cpukit/posix/src/keysetspecific.c
@@ -33,8 +33,10 @@ int pthread_setspecific(
the_key = _POSIX_Keys_Get( key, &location );
switch ( location ) {
- case OBJECTS_ERROR:
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never happen */
+#endif
+ case OBJECTS_ERROR:
return EINVAL;
case OBJECTS_LOCAL:
api = _Objects_Get_API( _Thread_Executing->Object.id );
diff --git a/cpukit/posix/src/mqueueclose.c b/cpukit/posix/src/mqueueclose.c
index 9254bbf25b..0187cae797 100644
--- a/cpukit/posix/src/mqueueclose.c
+++ b/cpukit/posix/src/mqueueclose.c
@@ -49,10 +49,12 @@ int mq_close(
switch ( location ) {
case OBJECTS_ERROR:
rtems_set_errno_and_return_minus_one( EBADF );
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
_Thread_Dispatch();
return POSIX_MP_NOT_IMPLEMENTED();
rtems_set_errno_and_return_minus_one( EINVAL );
+#endif
case OBJECTS_LOCAL:
/*
* First update the actual message queue to reflect this descriptor
diff --git a/cpukit/posix/src/mqueuegetattr.c b/cpukit/posix/src/mqueuegetattr.c
index d5cb7ababb..d4397a2f45 100644
--- a/cpukit/posix/src/mqueuegetattr.c
+++ b/cpukit/posix/src/mqueuegetattr.c
@@ -54,10 +54,12 @@ int mq_getattr(
switch ( location ) {
case OBJECTS_ERROR:
rtems_set_errno_and_return_minus_one( EBADF );
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
_Thread_Dispatch();
return POSIX_MP_NOT_IMPLEMENTED();
rtems_set_errno_and_return_minus_one( EINVAL );
+#endif
case OBJECTS_LOCAL:
the_mq = the_mq_fd->Queue;
diff --git a/cpukit/posix/src/mqueuenotify.c b/cpukit/posix/src/mqueuenotify.c
index 5733346e16..fa36bcd003 100644
--- a/cpukit/posix/src/mqueuenotify.c
+++ b/cpukit/posix/src/mqueuenotify.c
@@ -72,10 +72,12 @@ int mq_notify(
switch ( location ) {
case OBJECTS_ERROR:
rtems_set_errno_and_return_minus_one( EBADF );
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
_Thread_Dispatch();
return POSIX_MP_NOT_IMPLEMENTED();
rtems_set_errno_and_return_minus_one( EINVAL );
+#endif
case OBJECTS_LOCAL:
the_mq = the_mq_fd->Queue;
diff --git a/cpukit/posix/src/mqueuerecvsupp.c b/cpukit/posix/src/mqueuerecvsupp.c
index d97db51642..93fd000222 100644
--- a/cpukit/posix/src/mqueuerecvsupp.c
+++ b/cpukit/posix/src/mqueuerecvsupp.c
@@ -57,10 +57,12 @@ ssize_t _POSIX_Message_queue_Receive_support(
switch ( location ) {
case OBJECTS_ERROR:
rtems_set_errno_and_return_minus_one( EBADF );
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
_Thread_Dispatch();
return POSIX_MP_NOT_IMPLEMENTED();
rtems_set_errno_and_return_minus_one( EINVAL );
+#endif
case OBJECTS_LOCAL:
if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) {
_Thread_Enable_dispatch();
diff --git a/cpukit/posix/src/mqueuesendsupp.c b/cpukit/posix/src/mqueuesendsupp.c
index f02df6ddfe..7531507055 100644
--- a/cpukit/posix/src/mqueuesendsupp.c
+++ b/cpukit/posix/src/mqueuesendsupp.c
@@ -64,10 +64,12 @@ int _POSIX_Message_queue_Send_support(
case OBJECTS_ERROR:
rtems_set_errno_and_return_minus_one( EBADF );
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
_Thread_Dispatch();
return POSIX_MP_NOT_IMPLEMENTED();
rtems_set_errno_and_return_minus_one( EINVAL );
+#endif
case OBJECTS_LOCAL:
if ( (the_mq_fd->oflag & O_ACCMODE) == O_RDONLY ) {
diff --git a/cpukit/posix/src/mqueuesetattr.c b/cpukit/posix/src/mqueuesetattr.c
index 6d3b132ade..a7bc8a6b72 100644
--- a/cpukit/posix/src/mqueuesetattr.c
+++ b/cpukit/posix/src/mqueuesetattr.c
@@ -54,10 +54,12 @@ int mq_setattr(
switch ( location ) {
case OBJECTS_ERROR:
rtems_set_errno_and_return_minus_one( EBADF );
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
_Thread_Dispatch();
return POSIX_MP_NOT_IMPLEMENTED();
rtems_set_errno_and_return_minus_one( EINVAL );
+#endif
case OBJECTS_LOCAL:
the_core_mq = &the_mq_fd->Queue->Message_queue;
diff --git a/cpukit/posix/src/mutexdestroy.c b/cpukit/posix/src/mutexdestroy.c
index feffb9cad6..1f3726937d 100644
--- a/cpukit/posix/src/mutexdestroy.c
+++ b/cpukit/posix/src/mutexdestroy.c
@@ -33,8 +33,8 @@ int pthread_mutex_destroy(
the_mutex = _POSIX_Mutex_Get( mutex, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
return POSIX_MP_NOT_IMPLEMENTED();
return EINVAL;
diff --git a/cpukit/posix/src/mutexgetprioceiling.c b/cpukit/posix/src/mutexgetprioceiling.c
index b7bab0c132..7b56d631ec 100644
--- a/cpukit/posix/src/mutexgetprioceiling.c
+++ b/cpukit/posix/src/mutexgetprioceiling.c
@@ -37,8 +37,8 @@ int pthread_mutex_getprioceiling(
the_mutex = _POSIX_Mutex_Get( mutex, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
return POSIX_MP_NOT_IMPLEMENTED(); /* XXX feels questionable */
#endif
case OBJECTS_ERROR:
diff --git a/cpukit/posix/src/mutexinit.c b/cpukit/posix/src/mutexinit.c
index 3af8c1d621..753bdc65eb 100644
--- a/cpukit/posix/src/mutexinit.c
+++ b/cpukit/posix/src/mutexinit.c
@@ -80,7 +80,9 @@ int pthread_mutex_init(
mutex_in_use = _POSIX_Mutex_Get( mutex, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
break;
case OBJECTS_LOCAL:
diff --git a/cpukit/posix/src/mutexlocksupp.c b/cpukit/posix/src/mutexlocksupp.c
index 13c56d0a06..5b7fb252c9 100644
--- a/cpukit/posix/src/mutexlocksupp.c
+++ b/cpukit/posix/src/mutexlocksupp.c
@@ -39,8 +39,8 @@ int _POSIX_Mutex_Lock_support(
the_mutex = _POSIX_Mutex_Get_interrupt_disable( mutex, &location, &level );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
return _POSIX_Mutex_MP_Send_request_packet(
POSIX_MUTEX_MP_OBTAIN_REQUEST,
*mutex,
diff --git a/cpukit/posix/src/mutexsetprioceiling.c b/cpukit/posix/src/mutexsetprioceiling.c
index bfbd53d281..8815835443 100644
--- a/cpukit/posix/src/mutexsetprioceiling.c
+++ b/cpukit/posix/src/mutexsetprioceiling.c
@@ -53,8 +53,8 @@ int pthread_mutex_setprioceiling(
the_mutex = _POSIX_Mutex_Get( mutex, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
/* XXX It feels questionable to set the ceiling on a remote mutex. */
return EINVAL;
#endif
diff --git a/cpukit/posix/src/mutexunlock.c b/cpukit/posix/src/mutexunlock.c
index 0558e42edb..59faafd254 100644
--- a/cpukit/posix/src/mutexunlock.c
+++ b/cpukit/posix/src/mutexunlock.c
@@ -36,8 +36,8 @@ int pthread_mutex_unlock(
the_mutex = _POSIX_Mutex_Get( mutex, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
return _POSIX_Mutex_MP_Send_request_packet(
POSIX_MUTEX_MP_RELEASE_REQUEST,
*mutex,
diff --git a/cpukit/posix/src/pbarrierdestroy.c b/cpukit/posix/src/pbarrierdestroy.c
index ed48e78b55..633e4735a4 100644
--- a/cpukit/posix/src/pbarrierdestroy.c
+++ b/cpukit/posix/src/pbarrierdestroy.c
@@ -1,7 +1,7 @@
/*
* POSIX Barrier Manager -- Destroy a Barrier
*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -49,7 +49,9 @@ int pthread_barrier_destroy(
the_barrier = _POSIX_Barrier_Get( barrier, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return EINVAL;
diff --git a/cpukit/posix/src/pbarrierwait.c b/cpukit/posix/src/pbarrierwait.c
index 8856274fe6..7bc7f23a32 100644
--- a/cpukit/posix/src/pbarrierwait.c
+++ b/cpukit/posix/src/pbarrierwait.c
@@ -1,7 +1,7 @@
/*
* POSIX Barrier Manager -- Wait at a Barrier
*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -47,7 +47,9 @@ int pthread_barrier_wait(
the_barrier = _POSIX_Barrier_Get( barrier, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return EINVAL;
diff --git a/cpukit/posix/src/prwlockdestroy.c b/cpukit/posix/src/prwlockdestroy.c
index 6ba858d1d9..67dac7571a 100644
--- a/cpukit/posix/src/prwlockdestroy.c
+++ b/cpukit/posix/src/prwlockdestroy.c
@@ -1,7 +1,7 @@
/*
* POSIX RWLock Manager -- Destroy a RWLock
*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -49,7 +49,9 @@ int pthread_rwlock_destroy(
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return EINVAL;
diff --git a/cpukit/posix/src/prwlockrdlock.c b/cpukit/posix/src/prwlockrdlock.c
index adc5130181..ac6473c098 100644
--- a/cpukit/posix/src/prwlockrdlock.c
+++ b/cpukit/posix/src/prwlockrdlock.c
@@ -1,7 +1,7 @@
/*
* POSIX RWLock Manager -- Obtain a Read Lock on a RWLock Instance
*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -47,7 +47,9 @@ int pthread_rwlock_rdlock(
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return EINVAL;
diff --git a/cpukit/posix/src/prwlocktimedrdlock.c b/cpukit/posix/src/prwlocktimedrdlock.c
index 2e9d578018..521a3fb33c 100644
--- a/cpukit/posix/src/prwlocktimedrdlock.c
+++ b/cpukit/posix/src/prwlocktimedrdlock.c
@@ -1,7 +1,7 @@
/*
* POSIX RWLock Manager -- Attempt to Obtain a Read Lock on a RWLock Instance
*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -55,7 +55,9 @@ int pthread_rwlock_timedrdlock(
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return EINVAL;
diff --git a/cpukit/posix/src/prwlocktimedwrlock.c b/cpukit/posix/src/prwlocktimedwrlock.c
index 5a5253ad02..7d37f2c412 100644
--- a/cpukit/posix/src/prwlocktimedwrlock.c
+++ b/cpukit/posix/src/prwlocktimedwrlock.c
@@ -1,7 +1,7 @@
/*
* POSIX RWLock Manager -- Attempt to Obtain a Write Lock on a RWLock Instance
*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -55,7 +55,9 @@ int pthread_rwlock_timedwrlock(
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return EINVAL;
diff --git a/cpukit/posix/src/prwlocktryrdlock.c b/cpukit/posix/src/prwlocktryrdlock.c
index 9d988dd7f2..d6faa9789c 100644
--- a/cpukit/posix/src/prwlocktryrdlock.c
+++ b/cpukit/posix/src/prwlocktryrdlock.c
@@ -1,7 +1,7 @@
/*
* POSIX RWLock Manager -- Attempt to Obtain a Read Lock on a RWLock Instance
*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -47,7 +47,9 @@ int pthread_rwlock_tryrdlock(
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return EINVAL;
diff --git a/cpukit/posix/src/prwlocktrywrlock.c b/cpukit/posix/src/prwlocktrywrlock.c
index 861a448447..c6f3104457 100644
--- a/cpukit/posix/src/prwlocktrywrlock.c
+++ b/cpukit/posix/src/prwlocktrywrlock.c
@@ -1,7 +1,7 @@
/*
* POSIX RWLock Manager -- Attempt to Obtain a Write Lock on a RWLock Instance
*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -47,7 +47,9 @@ int pthread_rwlock_trywrlock(
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return EINVAL;
diff --git a/cpukit/posix/src/prwlockunlock.c b/cpukit/posix/src/prwlockunlock.c
index a91a0b1291..2854b7c4ba 100644
--- a/cpukit/posix/src/prwlockunlock.c
+++ b/cpukit/posix/src/prwlockunlock.c
@@ -1,7 +1,7 @@
/*
* POSIX RWLock Manager -- Release a lock held on a RWLock Instance
*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -48,7 +48,9 @@ int pthread_rwlock_unlock(
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return EINVAL;
diff --git a/cpukit/posix/src/prwlockwrlock.c b/cpukit/posix/src/prwlockwrlock.c
index dfacd90a30..6539e617a1 100644
--- a/cpukit/posix/src/prwlockwrlock.c
+++ b/cpukit/posix/src/prwlockwrlock.c
@@ -1,7 +1,7 @@
/*
* POSIX RWLock Manager -- Obtain a Write Lock on a RWLock Instance
*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -47,7 +47,9 @@ int pthread_rwlock_wrlock(
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return EINVAL;
diff --git a/cpukit/posix/src/pspindestroy.c b/cpukit/posix/src/pspindestroy.c
index fb5d8cc738..2a0f54b511 100644
--- a/cpukit/posix/src/pspindestroy.c
+++ b/cpukit/posix/src/pspindestroy.c
@@ -1,7 +1,7 @@
/*
* POSIX Spinlock Manager -- Destroy a Spinlock
*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -49,7 +49,9 @@ int pthread_spin_destroy(
the_spinlock = _POSIX_Spinlock_Get( spinlock, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return EINVAL;
diff --git a/cpukit/posix/src/pspinlock.c b/cpukit/posix/src/pspinlock.c
index 9888b43c32..56f2ce861d 100644
--- a/cpukit/posix/src/pspinlock.c
+++ b/cpukit/posix/src/pspinlock.c
@@ -1,7 +1,7 @@
/*
* POSIX Spinlock Manager -- Wait at a Spinlock
*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -47,7 +47,9 @@ int pthread_spin_lock(
the_spinlock = _POSIX_Spinlock_Get( spinlock, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return EINVAL;
diff --git a/cpukit/posix/src/pspintrylock.c b/cpukit/posix/src/pspintrylock.c
index a77b0e2b21..86c490f1cf 100644
--- a/cpukit/posix/src/pspintrylock.c
+++ b/cpukit/posix/src/pspintrylock.c
@@ -1,7 +1,7 @@
/*
* POSIX Spinlock Manager -- Wait at a Spinlock
*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -47,7 +47,9 @@ int pthread_spin_trylock(
the_spinlock = _POSIX_Spinlock_Get( spinlock, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return EINVAL;
diff --git a/cpukit/posix/src/pspinunlock.c b/cpukit/posix/src/pspinunlock.c
index 0af28ce56d..38f6310a79 100644
--- a/cpukit/posix/src/pspinunlock.c
+++ b/cpukit/posix/src/pspinunlock.c
@@ -1,7 +1,7 @@
/*
* POSIX Spinlock Manager -- Wait at a Spinlock
*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -47,7 +47,9 @@ int pthread_spin_unlock(
the_spinlock = _POSIX_Spinlock_Get( spinlock, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return EINVAL;
diff --git a/cpukit/posix/src/pthreaddetach.c b/cpukit/posix/src/pthreaddetach.c
index 7d7629f18a..153f04dba0 100644
--- a/cpukit/posix/src/pthreaddetach.c
+++ b/cpukit/posix/src/pthreaddetach.c
@@ -1,7 +1,7 @@
/*
* 16.1.4 Detaching a Thread, P1003.1c/Draft 10, p. 149
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -32,8 +32,10 @@ int pthread_detach(
the_thread = _POSIX_Threads_Get( thread, &location );
switch ( location ) {
- case OBJECTS_ERROR:
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
+ case OBJECTS_ERROR:
return ESRCH;
case OBJECTS_LOCAL:
diff --git a/cpukit/posix/src/pthreadequal.c b/cpukit/posix/src/pthreadequal.c
index 2b15761886..86db43767a 100644
--- a/cpukit/posix/src/pthreadequal.c
+++ b/cpukit/posix/src/pthreadequal.c
@@ -53,8 +53,10 @@ int pthread_equal(
(void) _POSIX_Threads_Get( t1, &location );
switch ( location ) {
- case OBJECTS_ERROR:
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
+ case OBJECTS_ERROR:
/* return status == 0 */
break;
diff --git a/cpukit/posix/src/pthreadgetschedparam.c b/cpukit/posix/src/pthreadgetschedparam.c
index 8b399b75ba..ff92fe29d5 100644
--- a/cpukit/posix/src/pthreadgetschedparam.c
+++ b/cpukit/posix/src/pthreadgetschedparam.c
@@ -2,7 +2,7 @@
* 13.5.2 Dynamic Thread Scheduling Parameters Access,
* P1003.1c/Draft 10, p. 124
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -38,8 +38,10 @@ int pthread_getschedparam(
the_thread = _POSIX_Threads_Get( thread, &location );
switch ( location ) {
- case OBJECTS_ERROR:
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
+ case OBJECTS_ERROR:
return ESRCH;
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
diff --git a/cpukit/posix/src/pthreadjoin.c b/cpukit/posix/src/pthreadjoin.c
index 669028335c..7c2623f81d 100644
--- a/cpukit/posix/src/pthreadjoin.c
+++ b/cpukit/posix/src/pthreadjoin.c
@@ -1,7 +1,7 @@
/*
* 16.1.3 Wait for Thread Termination, P1003.1c/Draft 10, p. 147
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -34,8 +34,10 @@ int pthread_join(
the_thread = _POSIX_Threads_Get( thread, &location );
switch ( location ) {
- case OBJECTS_ERROR:
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
+ case OBJECTS_ERROR:
return ESRCH;
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
diff --git a/cpukit/posix/src/pthreadkill.c b/cpukit/posix/src/pthreadkill.c
index c6624eb8be..be3678db14 100644
--- a/cpukit/posix/src/pthreadkill.c
+++ b/cpukit/posix/src/pthreadkill.c
@@ -1,7 +1,7 @@
/*
* 3.3.10 Send a Signal to a Thread, P1003.1c/D10, p. 43
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -47,8 +47,10 @@ int pthread_kill(
the_thread = _POSIX_Threads_Get( thread, &location );
switch ( location ) {
- case OBJECTS_ERROR:
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
+ case OBJECTS_ERROR:
rtems_set_errno_and_return_minus_one( ESRCH );
case OBJECTS_LOCAL:
/*
diff --git a/cpukit/posix/src/pthreadsetschedparam.c b/cpukit/posix/src/pthreadsetschedparam.c
index 63b45f8669..5b3e852541 100644
--- a/cpukit/posix/src/pthreadsetschedparam.c
+++ b/cpukit/posix/src/pthreadsetschedparam.c
@@ -86,8 +86,10 @@ int pthread_setschedparam(
the_thread = _POSIX_Threads_Get( thread, &location );
switch ( location ) {
- case OBJECTS_ERROR:
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
+ case OBJECTS_ERROR:
return ESRCH;
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
diff --git a/cpukit/posix/src/ptimer1.c b/cpukit/posix/src/ptimer1.c
index 2ee201ddda..142ac846c9 100644
--- a/cpukit/posix/src/ptimer1.c
+++ b/cpukit/posix/src/ptimer1.c
@@ -228,8 +228,8 @@ int timer_delete(
ptimer = _POSIX_Timer_Get( timerid, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
rtems_set_errno_and_return_minus_one( EINVAL );
#endif
@@ -292,8 +292,8 @@ int timer_settime(
ptimer = _POSIX_Timer_Get( timerid, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
return -1;
rtems_set_errno_and_return_minus_one( EINVAL );
@@ -416,8 +416,8 @@ int timer_gettime(
ptimer = _POSIX_Timer_Get( timerid, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
rtems_set_errno_and_return_minus_one( EINVAL );
#endif
@@ -465,8 +465,8 @@ int timer_getoverrun(
ptimer = _POSIX_Timer_Get( timerid, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
rtems_set_errno_and_return_minus_one( EINVAL );
#endif
diff --git a/cpukit/posix/src/semaphorewaitsupp.c b/cpukit/posix/src/semaphorewaitsupp.c
index 1c5f815b25..c815e42500 100644
--- a/cpukit/posix/src/semaphorewaitsupp.c
+++ b/cpukit/posix/src/semaphorewaitsupp.c
@@ -38,9 +38,11 @@ int _POSIX_Semaphore_Wait_support(
switch ( location ) {
case OBJECTS_ERROR:
rtems_set_errno_and_return_minus_one( EINVAL );
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
_Thread_Dispatch();
rtems_set_errno_and_return_minus_one( EINVAL );
+#endif
case OBJECTS_LOCAL:
_CORE_semaphore_Seize(
&the_semaphore->Semaphore,
diff --git a/cpukit/posix/src/semclose.c b/cpukit/posix/src/semclose.c
index 83b72f36e0..007caacdc2 100644
--- a/cpukit/posix/src/semclose.c
+++ b/cpukit/posix/src/semclose.c
@@ -41,10 +41,12 @@ int sem_close(
switch ( location ) {
case OBJECTS_ERROR:
rtems_set_errno_and_return_minus_one( EINVAL );
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
_Thread_Dispatch();
return POSIX_MP_NOT_IMPLEMENTED();
rtems_set_errno_and_return_minus_one( EINVAL );
+#endif
case OBJECTS_LOCAL:
the_semaphore->open_count -= 1;
_POSIX_Semaphore_Delete( the_semaphore );
diff --git a/cpukit/posix/src/semdestroy.c b/cpukit/posix/src/semdestroy.c
index 2daccce17c..75b74c6763 100644
--- a/cpukit/posix/src/semdestroy.c
+++ b/cpukit/posix/src/semdestroy.c
@@ -36,10 +36,12 @@ int sem_destroy(
switch ( location ) {
case OBJECTS_ERROR:
rtems_set_errno_and_return_minus_one( EINVAL );
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
_Thread_Dispatch();
return POSIX_MP_NOT_IMPLEMENTED();
rtems_set_errno_and_return_minus_one( EINVAL );
+#endif
case OBJECTS_LOCAL:
/*
* Undefined operation on a named semaphore.
diff --git a/cpukit/posix/src/semgetvalue.c b/cpukit/posix/src/semgetvalue.c
index e2bf9f83b2..c8c3222443 100644
--- a/cpukit/posix/src/semgetvalue.c
+++ b/cpukit/posix/src/semgetvalue.c
@@ -37,10 +37,12 @@ int sem_getvalue(
switch ( location ) {
case OBJECTS_ERROR:
rtems_set_errno_and_return_minus_one( EINVAL );
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
_Thread_Dispatch();
return POSIX_MP_NOT_IMPLEMENTED();
rtems_set_errno_and_return_minus_one( EINVAL );
+#endif
case OBJECTS_LOCAL:
*sval = _CORE_semaphore_Get_count( &the_semaphore->Semaphore );
_Thread_Enable_dispatch();
diff --git a/cpukit/posix/src/sempost.c b/cpukit/posix/src/sempost.c
index a4d7a36876..5381ea4800 100644
--- a/cpukit/posix/src/sempost.c
+++ b/cpukit/posix/src/sempost.c
@@ -36,10 +36,12 @@ int sem_post(
switch ( location ) {
case OBJECTS_ERROR:
rtems_set_errno_and_return_minus_one( EINVAL );
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
_Thread_Dispatch();
return POSIX_MP_NOT_IMPLEMENTED();
rtems_set_errno_and_return_minus_one( EINVAL );
+#endif
case OBJECTS_LOCAL:
_CORE_semaphore_Surrender(
&the_semaphore->Semaphore,
diff --git a/cpukit/posix/src/types.c b/cpukit/posix/src/types.c
index d9befea289..7f951f6154 100644
--- a/cpukit/posix/src/types.c
+++ b/cpukit/posix/src/types.c
@@ -23,11 +23,13 @@
#include <assert.h>
+#if defined(RTEMS_MULTIPROCESSING)
int POSIX_MP_NOT_IMPLEMENTED()
{
assert( 0 );
return 0;
}
+#endif
int POSIX_BOTTOM_REACHED()
{
diff --git a/cpukit/rtems/src/barrierdelete.c b/cpukit/rtems/src/barrierdelete.c
index 6b2a59b0cf..658820969d 100644
--- a/cpukit/rtems/src/barrierdelete.c
+++ b/cpukit/rtems/src/barrierdelete.c
@@ -1,7 +1,7 @@
/*
* Barrier Manager -- Delete a Barrier
*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -48,7 +48,9 @@ rtems_status_code rtems_barrier_delete(
the_barrier = _Barrier_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/barrierrelease.c b/cpukit/rtems/src/barrierrelease.c
index b4dce1ec0d..2dfc441da3 100644
--- a/cpukit/rtems/src/barrierrelease.c
+++ b/cpukit/rtems/src/barrierrelease.c
@@ -1,7 +1,7 @@
/*
* Barrier Manager -- Release Tasks Waitng at a Barrier
*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -50,7 +50,9 @@ rtems_status_code rtems_barrier_release(
the_barrier = _Barrier_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/barrierwait.c b/cpukit/rtems/src/barrierwait.c
index 5f282552ae..6a3fcb3103 100644
--- a/cpukit/rtems/src/barrierwait.c
+++ b/cpukit/rtems/src/barrierwait.c
@@ -1,7 +1,7 @@
/*
* Barrier Manager -- Wait at a Barrier
*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -46,7 +46,9 @@ rtems_status_code rtems_barrier_wait(
the_barrier = _Barrier_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/dpmemdelete.c b/cpukit/rtems/src/dpmemdelete.c
index b2cf5015bd..91fe812132 100644
--- a/cpukit/rtems/src/dpmemdelete.c
+++ b/cpukit/rtems/src/dpmemdelete.c
@@ -1,7 +1,7 @@
/*
* Dual Port Memory Manager
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -48,8 +48,10 @@ rtems_status_code rtems_port_delete(
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* this error cannot be returned */
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/dpmemexternal2internal.c b/cpukit/rtems/src/dpmemexternal2internal.c
index 5ec6f16745..512d2ec32d 100644
--- a/cpukit/rtems/src/dpmemexternal2internal.c
+++ b/cpukit/rtems/src/dpmemexternal2internal.c
@@ -1,7 +1,7 @@
/*
* Dual Port Memory Manager
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -58,8 +58,10 @@ rtems_status_code rtems_port_external_to_internal(
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* this error cannot be returned */
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/dpmeminternal2external.c b/cpukit/rtems/src/dpmeminternal2external.c
index d643de478a..0f048cb97e 100644
--- a/cpukit/rtems/src/dpmeminternal2external.c
+++ b/cpukit/rtems/src/dpmeminternal2external.c
@@ -1,7 +1,7 @@
/*
* Dual Port Memory Manager
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -58,8 +58,10 @@ rtems_status_code rtems_port_internal_to_external(
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* this error cannot be returned */
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/eventsend.c b/cpukit/rtems/src/eventsend.c
index 90eed2207f..1f913e27ea 100644
--- a/cpukit/rtems/src/eventsend.c
+++ b/cpukit/rtems/src/eventsend.c
@@ -1,7 +1,7 @@
/*
* Event Manager
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -51,8 +51,8 @@ rtems_status_code rtems_event_send(
the_thread = _Thread_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
return(
_Event_MP_Send_request_packet(
EVENT_MP_SEND_REQUEST,
diff --git a/cpukit/rtems/src/eventtimeout.c b/cpukit/rtems/src/eventtimeout.c
index c21727f248..75c0e487db 100644
--- a/cpukit/rtems/src/eventtimeout.c
+++ b/cpukit/rtems/src/eventtimeout.c
@@ -1,7 +1,7 @@
/*
* Event Manager
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -49,7 +49,9 @@ void _Event_Timeout(
the_thread = _Thread_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
+#endif
case OBJECTS_ERROR:
break;
case OBJECTS_LOCAL:
diff --git a/cpukit/rtems/src/msgqbroadcast.c b/cpukit/rtems/src/msgqbroadcast.c
index 9cda6a8fde..4b9304991b 100644
--- a/cpukit/rtems/src/msgqbroadcast.c
+++ b/cpukit/rtems/src/msgqbroadcast.c
@@ -2,7 +2,7 @@
* Message Queue Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -72,8 +72,8 @@ rtems_status_code rtems_message_queue_broadcast(
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Executing->Wait.return_argument = count;
return
diff --git a/cpukit/rtems/src/msgqdelete.c b/cpukit/rtems/src/msgqdelete.c
index 4875578946..a43027f343 100644
--- a/cpukit/rtems/src/msgqdelete.c
+++ b/cpukit/rtems/src/msgqdelete.c
@@ -2,7 +2,7 @@
* Message Queue Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -59,8 +59,8 @@ rtems_status_code rtems_message_queue_delete(
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
return RTEMS_ILLEGAL_ON_REMOTE_OBJECT;
#endif
diff --git a/cpukit/rtems/src/msgqflush.c b/cpukit/rtems/src/msgqflush.c
index 2132725f30..a1eed21779 100644
--- a/cpukit/rtems/src/msgqflush.c
+++ b/cpukit/rtems/src/msgqflush.c
@@ -2,7 +2,7 @@
* Message Queue Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -65,8 +65,8 @@ rtems_status_code rtems_message_queue_flush(
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Executing->Wait.return_argument = count;
return
diff --git a/cpukit/rtems/src/msgqgetnumberpending.c b/cpukit/rtems/src/msgqgetnumberpending.c
index 682f94837d..33e2b912e5 100644
--- a/cpukit/rtems/src/msgqgetnumberpending.c
+++ b/cpukit/rtems/src/msgqgetnumberpending.c
@@ -2,7 +2,7 @@
* Message Queue Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -63,8 +63,8 @@ rtems_status_code rtems_message_queue_get_number_pending(
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Executing->Wait.return_argument = count;
return _Message_queue_MP_Send_request_packet(
diff --git a/cpukit/rtems/src/msgqreceive.c b/cpukit/rtems/src/msgqreceive.c
index 1803081339..83e8758fef 100644
--- a/cpukit/rtems/src/msgqreceive.c
+++ b/cpukit/rtems/src/msgqreceive.c
@@ -2,7 +2,7 @@
* Message Queue Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -74,8 +74,8 @@ rtems_status_code rtems_message_queue_receive(
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
return _Message_queue_MP_Send_request_packet(
MESSAGE_QUEUE_MP_RECEIVE_REQUEST,
id,
diff --git a/cpukit/rtems/src/msgqsend.c b/cpukit/rtems/src/msgqsend.c
index a52f05273b..f81c8f1dab 100644
--- a/cpukit/rtems/src/msgqsend.c
+++ b/cpukit/rtems/src/msgqsend.c
@@ -72,8 +72,8 @@ rtems_status_code rtems_message_queue_send(
the_message_queue = _Message_queue_Get( id, &location );
switch ( location )
{
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
return _Message_queue_MP_Send_request_packet(
MESSAGE_QUEUE_MP_SEND_REQUEST,
id,
diff --git a/cpukit/rtems/src/msgqurgent.c b/cpukit/rtems/src/msgqurgent.c
index d509129507..93a5376eff 100644
--- a/cpukit/rtems/src/msgqurgent.c
+++ b/cpukit/rtems/src/msgqurgent.c
@@ -72,8 +72,8 @@ rtems_status_code rtems_message_queue_urgent(
the_message_queue = _Message_queue_Get( id, &location );
switch ( location )
{
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
return _Message_queue_MP_Send_request_packet(
MESSAGE_QUEUE_MP_URGENT_REQUEST,
id,
diff --git a/cpukit/rtems/src/partdelete.c b/cpukit/rtems/src/partdelete.c
index a55c609711..3ee4734615 100644
--- a/cpukit/rtems/src/partdelete.c
+++ b/cpukit/rtems/src/partdelete.c
@@ -2,7 +2,7 @@
* Partition Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -50,8 +50,8 @@ rtems_status_code rtems_partition_delete(
the_partition = _Partition_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
return RTEMS_ILLEGAL_ON_REMOTE_OBJECT;
#endif
diff --git a/cpukit/rtems/src/partgetbuffer.c b/cpukit/rtems/src/partgetbuffer.c
index 90dd726ecd..85298ff2dd 100644
--- a/cpukit/rtems/src/partgetbuffer.c
+++ b/cpukit/rtems/src/partgetbuffer.c
@@ -2,7 +2,7 @@
* Partition Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -55,8 +55,8 @@ rtems_status_code rtems_partition_get_buffer(
the_partition = _Partition_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Executing->Wait.return_argument = buffer;
return(
_Partition_MP_Send_request_packet(
diff --git a/cpukit/rtems/src/partreturnbuffer.c b/cpukit/rtems/src/partreturnbuffer.c
index 9e304b4d95..916e1a3dc1 100644
--- a/cpukit/rtems/src/partreturnbuffer.c
+++ b/cpukit/rtems/src/partreturnbuffer.c
@@ -2,7 +2,7 @@
* Partition Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -52,8 +52,8 @@ rtems_status_code rtems_partition_return_buffer(
the_partition = _Partition_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
return _Partition_MP_Send_request_packet(
PARTITION_MP_RETURN_BUFFER_REQUEST,
id,
diff --git a/cpukit/rtems/src/ratemoncancel.c b/cpukit/rtems/src/ratemoncancel.c
index fff77eb448..396fd79f32 100644
--- a/cpukit/rtems/src/ratemoncancel.c
+++ b/cpukit/rtems/src/ratemoncancel.c
@@ -46,8 +46,10 @@ rtems_status_code rtems_rate_monotonic_cancel(
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
return RTEMS_INTERNAL_ERROR; /* should never return this */
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/ratemondelete.c b/cpukit/rtems/src/ratemondelete.c
index 7eeabb2415..73292389cb 100644
--- a/cpukit/rtems/src/ratemondelete.c
+++ b/cpukit/rtems/src/ratemondelete.c
@@ -46,8 +46,10 @@ rtems_status_code rtems_rate_monotonic_delete(
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never return this */
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/ratemongetstatistics.c b/cpukit/rtems/src/ratemongetstatistics.c
index aae74b0328..43454806d6 100644
--- a/cpukit/rtems/src/ratemongetstatistics.c
+++ b/cpukit/rtems/src/ratemongetstatistics.c
@@ -53,8 +53,10 @@ rtems_status_code rtems_rate_monotonic_get_statistics(
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never return this */
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/ratemongetstatus.c b/cpukit/rtems/src/ratemongetstatus.c
index d46b133e73..5d9b7075ac 100644
--- a/cpukit/rtems/src/ratemongetstatus.c
+++ b/cpukit/rtems/src/ratemongetstatus.c
@@ -58,8 +58,10 @@ rtems_status_code rtems_rate_monotonic_get_status(
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never return this */
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/ratemonperiod.c b/cpukit/rtems/src/ratemonperiod.c
index 8d0dca13d2..099c9fedde 100644
--- a/cpukit/rtems/src/ratemonperiod.c
+++ b/cpukit/rtems/src/ratemonperiod.c
@@ -184,8 +184,10 @@ rtems_status_code rtems_rate_monotonic_period(
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never return this */
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/ratemonresetstatistics.c b/cpukit/rtems/src/ratemonresetstatistics.c
index 6d8f9c5e11..fc5cbb34c9 100644
--- a/cpukit/rtems/src/ratemonresetstatistics.c
+++ b/cpukit/rtems/src/ratemonresetstatistics.c
@@ -48,8 +48,10 @@ rtems_status_code rtems_rate_monotonic_reset_statistics(
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never return this */
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/ratemontimeout.c b/cpukit/rtems/src/ratemontimeout.c
index f861774f98..8f41dc5094 100644
--- a/cpukit/rtems/src/ratemontimeout.c
+++ b/cpukit/rtems/src/ratemontimeout.c
@@ -54,7 +54,9 @@ void _Rate_monotonic_Timeout(
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
+#endif
case OBJECTS_ERROR:
break;
diff --git a/cpukit/rtems/src/regiondelete.c b/cpukit/rtems/src/regiondelete.c
index 61409aa229..6788282750 100644
--- a/cpukit/rtems/src/regiondelete.c
+++ b/cpukit/rtems/src/regiondelete.c
@@ -2,7 +2,7 @@
* Region Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -52,9 +52,11 @@ rtems_status_code rtems_region_delete(
_RTEMS_Lock_allocator();
the_region = _Region_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* this error cannot be returned */
_RTEMS_Unlock_allocator();
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
_RTEMS_Unlock_allocator();
diff --git a/cpukit/rtems/src/regionextend.c b/cpukit/rtems/src/regionextend.c
index 25883e4c28..66e9fea936 100644
--- a/cpukit/rtems/src/regionextend.c
+++ b/cpukit/rtems/src/regionextend.c
@@ -2,7 +2,7 @@
* Region Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -63,9 +63,11 @@ rtems_status_code rtems_region_extend(
_RTEMS_Lock_allocator(); /* to prevent deletion */
the_region = _Region_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* this error cannot be returned */
_RTEMS_Unlock_allocator();
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
_RTEMS_Unlock_allocator();
diff --git a/cpukit/rtems/src/regiongetfreeinfo.c b/cpukit/rtems/src/regiongetfreeinfo.c
index 153f965d8c..3ad06374fb 100644
--- a/cpukit/rtems/src/regiongetfreeinfo.c
+++ b/cpukit/rtems/src/regiongetfreeinfo.c
@@ -2,7 +2,7 @@
* Region Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -58,9 +58,11 @@ rtems_status_code rtems_region_get_free_information(
_RTEMS_Lock_allocator();
the_region = _Region_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* this error cannot be returned */
_RTEMS_Unlock_allocator();
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
_RTEMS_Unlock_allocator();
diff --git a/cpukit/rtems/src/regiongetinfo.c b/cpukit/rtems/src/regiongetinfo.c
index 3b0497fce8..9843338b0a 100644
--- a/cpukit/rtems/src/regiongetinfo.c
+++ b/cpukit/rtems/src/regiongetinfo.c
@@ -2,7 +2,7 @@
* Region Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -56,9 +56,11 @@ rtems_status_code rtems_region_get_information(
_RTEMS_Lock_allocator();
the_region = _Region_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* this error cannot be returned */
_RTEMS_Unlock_allocator();
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
_RTEMS_Unlock_allocator();
diff --git a/cpukit/rtems/src/regiongetsegment.c b/cpukit/rtems/src/regiongetsegment.c
index c9793af31f..6340cd915e 100644
--- a/cpukit/rtems/src/regiongetsegment.c
+++ b/cpukit/rtems/src/regiongetsegment.c
@@ -2,7 +2,7 @@
* Region Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -70,9 +70,11 @@ rtems_status_code rtems_region_get_segment(
executing = _Thread_Executing;
the_region = _Region_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* this error cannot be returned */
_RTEMS_Unlock_allocator();
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
_RTEMS_Unlock_allocator();
diff --git a/cpukit/rtems/src/regiongetsegmentsize.c b/cpukit/rtems/src/regiongetsegmentsize.c
index b7792eac09..c89efd0d36 100644
--- a/cpukit/rtems/src/regiongetsegmentsize.c
+++ b/cpukit/rtems/src/regiongetsegmentsize.c
@@ -2,7 +2,7 @@
* Region Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -63,9 +63,11 @@ rtems_status_code rtems_region_get_segment_size(
executing = _Thread_Executing;
the_region = _Region_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* this error cannot be returned */
_RTEMS_Unlock_allocator();
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
_RTEMS_Unlock_allocator();
diff --git a/cpukit/rtems/src/regionresizesegment.c b/cpukit/rtems/src/regionresizesegment.c
index b83ed2c6e6..ab74eb35a0 100644
--- a/cpukit/rtems/src/regionresizesegment.c
+++ b/cpukit/rtems/src/regionresizesegment.c
@@ -2,7 +2,7 @@
* Region Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -63,9 +63,11 @@ rtems_status_code rtems_region_resize_segment(
the_region = _Region_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* this error cannot be returned */
_RTEMS_Unlock_allocator();
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
_RTEMS_Unlock_allocator();
diff --git a/cpukit/rtems/src/regionreturnsegment.c b/cpukit/rtems/src/regionreturnsegment.c
index dc080e5ed5..4c08b44d59 100644
--- a/cpukit/rtems/src/regionreturnsegment.c
+++ b/cpukit/rtems/src/regionreturnsegment.c
@@ -2,7 +2,7 @@
* Region Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -65,9 +65,11 @@ rtems_status_code rtems_region_return_segment(
the_region = _Region_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* this error cannot be returned */
_RTEMS_Unlock_allocator();
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
_RTEMS_Unlock_allocator();
diff --git a/cpukit/rtems/src/semdelete.c b/cpukit/rtems/src/semdelete.c
index 450333a51c..5146a8bb7a 100644
--- a/cpukit/rtems/src/semdelete.c
+++ b/cpukit/rtems/src/semdelete.c
@@ -15,7 +15,7 @@
* + acquire a semaphore
* + release a semaphore
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -81,8 +81,8 @@ rtems_status_code rtems_semaphore_delete(
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
return RTEMS_ILLEGAL_ON_REMOTE_OBJECT;
#endif
diff --git a/cpukit/rtems/src/semflush.c b/cpukit/rtems/src/semflush.c
index 823dd7692f..7ce44b4292 100644
--- a/cpukit/rtems/src/semflush.c
+++ b/cpukit/rtems/src/semflush.c
@@ -6,7 +6,7 @@
* This package is the implementation of the flush directive
* of the Semaphore Manager.
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -71,8 +71,8 @@ rtems_status_code rtems_semaphore_flush(
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
return RTEMS_ILLEGAL_ON_REMOTE_OBJECT;
#endif
diff --git a/cpukit/rtems/src/semobtain.c b/cpukit/rtems/src/semobtain.c
index bfa8831f6a..55d41acc0d 100644
--- a/cpukit/rtems/src/semobtain.c
+++ b/cpukit/rtems/src/semobtain.c
@@ -15,7 +15,7 @@
* + acquire a semaphore
* + release a semaphore
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -77,8 +77,8 @@ rtems_status_code rtems_semaphore_obtain(
the_semaphore = _Semaphore_Get_interrupt_disable( id, &location, &level );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
return _Semaphore_MP_Send_request_packet(
SEMAPHORE_MP_OBTAIN_REQUEST,
id,
diff --git a/cpukit/rtems/src/semrelease.c b/cpukit/rtems/src/semrelease.c
index 69647132c2..cbb7b97fc8 100644
--- a/cpukit/rtems/src/semrelease.c
+++ b/cpukit/rtems/src/semrelease.c
@@ -15,7 +15,7 @@
* + acquire a semaphore
* + release a semaphore
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -81,8 +81,8 @@ rtems_status_code rtems_semaphore_release(
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
return _Semaphore_MP_Send_request_packet(
SEMAPHORE_MP_RELEASE_REQUEST,
id,
diff --git a/cpukit/rtems/src/signalsend.c b/cpukit/rtems/src/signalsend.c
index 2d05a5249b..33db2b8aba 100644
--- a/cpukit/rtems/src/signalsend.c
+++ b/cpukit/rtems/src/signalsend.c
@@ -2,7 +2,7 @@
* Signal Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -56,8 +56,8 @@ rtems_status_code rtems_signal_send(
the_thread = _Thread_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
return _Signal_MP_Send_request_packet(
SIGNAL_MP_SEND_REQUEST,
id,
diff --git a/cpukit/rtems/src/taskdelete.c b/cpukit/rtems/src/taskdelete.c
index 9eefcb919b..ee21f75bf5 100644
--- a/cpukit/rtems/src/taskdelete.c
+++ b/cpukit/rtems/src/taskdelete.c
@@ -2,7 +2,7 @@
* RTEMS Task Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -61,8 +61,8 @@ rtems_status_code rtems_task_delete(
the_thread = _Thread_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
return RTEMS_ILLEGAL_ON_REMOTE_OBJECT;
#endif
@@ -73,11 +73,13 @@ rtems_status_code rtems_task_delete(
case OBJECTS_LOCAL:
the_information = _Objects_Get_information( the_thread->Object.id );
+#if defined(RTEMS_DEBUG)
if ( !the_information ) {
_Thread_Enable_dispatch();
return RTEMS_INVALID_ID;
/* This should never happen if _Thread_Get() works right */
}
+#endif
_Thread_Close( the_information, the_thread );
diff --git a/cpukit/rtems/src/taskgetnote.c b/cpukit/rtems/src/taskgetnote.c
index 7d01b9455f..42328468be 100644
--- a/cpukit/rtems/src/taskgetnote.c
+++ b/cpukit/rtems/src/taskgetnote.c
@@ -2,7 +2,7 @@
* RTEMS Task Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -85,8 +85,8 @@ rtems_status_code rtems_task_get_note(
the_thread = _Thread_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Executing->Wait.return_argument = note;
return _RTEMS_tasks_MP_Send_request_packet(
diff --git a/cpukit/rtems/src/taskissuspended.c b/cpukit/rtems/src/taskissuspended.c
index a60d23af71..b682a5786f 100644
--- a/cpukit/rtems/src/taskissuspended.c
+++ b/cpukit/rtems/src/taskissuspended.c
@@ -2,7 +2,7 @@
* RTEMS Task Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -58,9 +58,8 @@ rtems_status_code rtems_task_is_suspended(
the_thread = _Thread_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
-
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
return RTEMS_ILLEGAL_ON_REMOTE_OBJECT;
#endif
diff --git a/cpukit/rtems/src/taskrestart.c b/cpukit/rtems/src/taskrestart.c
index b24b00b9ee..d374d43fc4 100644
--- a/cpukit/rtems/src/taskrestart.c
+++ b/cpukit/rtems/src/taskrestart.c
@@ -2,7 +2,7 @@
* RTEMS Task Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -61,8 +61,8 @@ rtems_status_code rtems_task_restart(
the_thread = _Thread_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
return RTEMS_ILLEGAL_ON_REMOTE_OBJECT;
#endif
diff --git a/cpukit/rtems/src/taskresume.c b/cpukit/rtems/src/taskresume.c
index 4d6e5b4444..345797c2a1 100644
--- a/cpukit/rtems/src/taskresume.c
+++ b/cpukit/rtems/src/taskresume.c
@@ -2,7 +2,7 @@
* RTEMS Task Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -57,8 +57,8 @@ rtems_status_code rtems_task_resume(
the_thread = _Thread_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
return _RTEMS_tasks_MP_Send_request_packet(
RTEMS_TASKS_MP_RESUME_REQUEST,
id,
diff --git a/cpukit/rtems/src/tasksetnote.c b/cpukit/rtems/src/tasksetnote.c
index 60aabcd191..3cf9fbbd80 100644
--- a/cpukit/rtems/src/tasksetnote.c
+++ b/cpukit/rtems/src/tasksetnote.c
@@ -2,7 +2,7 @@
* RTEMS Task Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -81,8 +81,8 @@ rtems_status_code rtems_task_set_note(
the_thread = _Thread_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
return _RTEMS_tasks_MP_Send_request_packet(
RTEMS_TASKS_MP_SET_NOTE_REQUEST,
id,
diff --git a/cpukit/rtems/src/tasksetpriority.c b/cpukit/rtems/src/tasksetpriority.c
index 432837780c..931699a2a2 100644
--- a/cpukit/rtems/src/tasksetpriority.c
+++ b/cpukit/rtems/src/tasksetpriority.c
@@ -2,7 +2,7 @@
* RTEMS Task Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -70,8 +70,8 @@ rtems_status_code rtems_task_set_priority(
the_thread = _Thread_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Executing->Wait.return_argument = old_priority;
return _RTEMS_tasks_MP_Send_request_packet(
RTEMS_TASKS_MP_SET_PRIORITY_REQUEST,
diff --git a/cpukit/rtems/src/taskstart.c b/cpukit/rtems/src/taskstart.c
index 3e1028daf0..a15d135be2 100644
--- a/cpukit/rtems/src/taskstart.c
+++ b/cpukit/rtems/src/taskstart.c
@@ -2,7 +2,7 @@
* RTEMS Task Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -65,8 +65,8 @@ rtems_status_code rtems_task_start(
the_thread = _Thread_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
return RTEMS_ILLEGAL_ON_REMOTE_OBJECT;
#endif
diff --git a/cpukit/rtems/src/tasksuspend.c b/cpukit/rtems/src/tasksuspend.c
index bb27b37dc9..1e0d109192 100644
--- a/cpukit/rtems/src/tasksuspend.c
+++ b/cpukit/rtems/src/tasksuspend.c
@@ -2,7 +2,7 @@
* RTEMS Task Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -58,8 +58,8 @@ rtems_status_code rtems_task_suspend(
the_thread = _Thread_Get( id, &location );
switch ( location ) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
return _RTEMS_tasks_MP_Send_request_packet(
RTEMS_TASKS_MP_SUSPEND_REQUEST,
id,
diff --git a/cpukit/rtems/src/taskvariableadd.c b/cpukit/rtems/src/taskvariableadd.c
index c37b0c22f5..a1d7fef19d 100644
--- a/cpukit/rtems/src/taskvariableadd.c
+++ b/cpukit/rtems/src/taskvariableadd.c
@@ -2,7 +2,7 @@
* rtems_task_variable_add - Add a per-task variable
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -41,17 +41,15 @@ rtems_status_code rtems_task_variable_add(
the_thread = _Thread_Get (tid, &location);
switch (location) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
return RTEMS_ILLEGAL_ON_REMOTE_OBJECT;
#endif
case OBJECTS_ERROR:
- return RTEMS_INVALID_ID;
-
default:
- return RTEMS_INTERNAL_ERROR;
+ return RTEMS_INVALID_ID;
case OBJECTS_LOCAL:
diff --git a/cpukit/rtems/src/taskvariabledelete.c b/cpukit/rtems/src/taskvariabledelete.c
index cf16cdc6a2..9f3e9a2e40 100644
--- a/cpukit/rtems/src/taskvariabledelete.c
+++ b/cpukit/rtems/src/taskvariabledelete.c
@@ -2,7 +2,7 @@
* rtems_task_variable_delete - Delete a per-task variable
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -42,17 +42,16 @@ rtems_status_code rtems_task_variable_delete(
the_thread = _Thread_Get (tid, &location);
switch (location) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
return RTEMS_ILLEGAL_ON_REMOTE_OBJECT;
#endif
- case OBJECTS_ERROR:
- return RTEMS_INVALID_ID;
+ case OBJECTS_ERROR:
default:
- return RTEMS_INTERNAL_ERROR;
+ return RTEMS_INVALID_ID;
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
diff --git a/cpukit/rtems/src/taskvariableget.c b/cpukit/rtems/src/taskvariableget.c
index 0736d131af..8b200f8779 100644
--- a/cpukit/rtems/src/taskvariableget.c
+++ b/cpukit/rtems/src/taskvariableget.c
@@ -2,7 +2,7 @@
* rtems_task_variable_get - Get a per-task variable
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -44,17 +44,15 @@ rtems_status_code rtems_task_variable_get(
the_thread = _Thread_Get (tid, &location);
switch (location) {
- case OBJECTS_REMOTE:
#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
_Thread_Dispatch();
return RTEMS_ILLEGAL_ON_REMOTE_OBJECT;
#endif
case OBJECTS_ERROR:
- return RTEMS_INVALID_ID;
-
default:
- return RTEMS_INTERNAL_ERROR;
+ return RTEMS_INVALID_ID;
case OBJECTS_LOCAL:
diff --git a/cpukit/rtems/src/timercancel.c b/cpukit/rtems/src/timercancel.c
index 562524ede9..fd8d1bee32 100644
--- a/cpukit/rtems/src/timercancel.c
+++ b/cpukit/rtems/src/timercancel.c
@@ -2,7 +2,7 @@
* Timer Manager - rtems_timer_cancel directive
*
*
- * COPYRIGHT (c) 1989-2002.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -48,8 +48,10 @@ rtems_status_code rtems_timer_cancel(
the_timer = _Timer_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never return this */
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/timerdelete.c b/cpukit/rtems/src/timerdelete.c
index f40550e4a2..a60e32e5cb 100644
--- a/cpukit/rtems/src/timerdelete.c
+++ b/cpukit/rtems/src/timerdelete.c
@@ -2,7 +2,7 @@
* Timer Manager - rtems_timer_delete directive
*
*
- * COPYRIGHT (c) 1989-2002.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -48,8 +48,10 @@ rtems_status_code rtems_timer_delete(
the_timer = _Timer_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never return this */
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/timerfireafter.c b/cpukit/rtems/src/timerfireafter.c
index bb5a2b3adc..2888017943 100644
--- a/cpukit/rtems/src/timerfireafter.c
+++ b/cpukit/rtems/src/timerfireafter.c
@@ -2,7 +2,7 @@
* Timer Manager - rtems_timer_fire_after directive
*
*
- * COPYRIGHT (c) 1989-2002.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -61,8 +61,10 @@ rtems_status_code rtems_timer_fire_after(
the_timer = _Timer_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never return this */
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/timerfirewhen.c b/cpukit/rtems/src/timerfirewhen.c
index 9e165751e6..83b7438b82 100644
--- a/cpukit/rtems/src/timerfirewhen.c
+++ b/cpukit/rtems/src/timerfirewhen.c
@@ -2,7 +2,7 @@
* Timer Manager - rtems_timer_fire_when directive
*
*
- * COPYRIGHT (c) 1989-2002.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -68,8 +68,10 @@ rtems_status_code rtems_timer_fire_when(
the_timer = _Timer_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never return this */
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/timergetinfo.c b/cpukit/rtems/src/timergetinfo.c
index d57f3bf669..0639a8a245 100644
--- a/cpukit/rtems/src/timergetinfo.c
+++ b/cpukit/rtems/src/timergetinfo.c
@@ -2,7 +2,7 @@
* Timer Manager - rtems_timer_get_information directive
*
*
- * COPYRIGHT (c) 1989-2002.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -55,8 +55,10 @@ rtems_status_code rtems_timer_get_information(
the_timer = _Timer_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never return this */
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/timerreset.c b/cpukit/rtems/src/timerreset.c
index 36f13cf18d..4f50088637 100644
--- a/cpukit/rtems/src/timerreset.c
+++ b/cpukit/rtems/src/timerreset.c
@@ -2,7 +2,7 @@
* Timer Manager - rtems_timer_reset directive
*
*
- * COPYRIGHT (c) 1989-2002.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -48,8 +48,10 @@ rtems_status_code rtems_timer_reset(
the_timer = _Timer_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never return this */
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/timerserverfireafter.c b/cpukit/rtems/src/timerserverfireafter.c
index 2d653a6db0..0527b970ee 100644
--- a/cpukit/rtems/src/timerserverfireafter.c
+++ b/cpukit/rtems/src/timerserverfireafter.c
@@ -2,7 +2,7 @@
* Timer Manager - rtems_timer_server fire_after directive
*
*
- * COPYRIGHT (c) 1989-2002.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -65,8 +65,10 @@ rtems_status_code rtems_timer_server_fire_after(
the_timer = _Timer_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never return this */
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/rtems/src/timerserverfirewhen.c b/cpukit/rtems/src/timerserverfirewhen.c
index 1b3dfb3d14..a2cf3a291c 100644
--- a/cpukit/rtems/src/timerserverfirewhen.c
+++ b/cpukit/rtems/src/timerserverfirewhen.c
@@ -2,7 +2,7 @@
* Timer Manager - rtems_timer_server fire_when directive
*
*
- * COPYRIGHT (c) 1989-2002.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -72,8 +72,10 @@ rtems_status_code rtems_timer_server_fire_when(
the_timer = _Timer_Get( id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never return this */
return RTEMS_INTERNAL_ERROR;
+#endif
case OBJECTS_ERROR:
return RTEMS_INVALID_ID;
diff --git a/cpukit/sapi/src/extensiondelete.c b/cpukit/sapi/src/extensiondelete.c
index 4e3d937ecf..2021c9bcab 100644
--- a/cpukit/sapi/src/extensiondelete.c
+++ b/cpukit/sapi/src/extensiondelete.c
@@ -2,7 +2,7 @@
* Extension Manager -- rtems_extension_delete
*
*
- * COPYRIGHT (c) 1989-2002.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -46,7 +46,9 @@ rtems_status_code rtems_extension_delete(
the_extension = _Extension_Get( id, &location );
switch ( location ) {
case OBJECTS_ERROR:
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never return this */
+#endif
return RTEMS_INVALID_ID;
case OBJECTS_LOCAL:
_User_extensions_Remove_set( &the_extension->Extension );
diff --git a/cpukit/score/include/rtems/score/object.h b/cpukit/score/include/rtems/score/object.h
index ea49947941..8058c47250 100644
--- a/cpukit/score/include/rtems/score/object.h
+++ b/cpukit/score/include/rtems/score/object.h
@@ -9,7 +9,7 @@
*/
/*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -287,8 +287,10 @@ typedef enum {
*/
typedef enum {
OBJECTS_LOCAL = 0, /* object is local */
- OBJECTS_REMOTE = 1, /* object is remote */
- OBJECTS_ERROR = 2 /* id was invalid */
+ OBJECTS_ERROR = 1, /* id was invalid */
+#if defined(RTEMS_MULTIPROCESSING)
+ OBJECTS_REMOTE = 2, /* object is remote */
+#endif
} Objects_Locations;
/**
diff --git a/cpukit/score/src/corerwlocktimeout.c b/cpukit/score/src/corerwlocktimeout.c
index 3d3276c13a..698b3f8095 100644
--- a/cpukit/score/src/corerwlocktimeout.c
+++ b/cpukit/score/src/corerwlocktimeout.c
@@ -2,7 +2,7 @@
* Thread Queue Handler
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -43,7 +43,9 @@ void _CORE_RWLock_Timeout(
the_thread = _Thread_Get( id, &location );
switch ( location ) {
case OBJECTS_ERROR:
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
+#endif
break;
case OBJECTS_LOCAL:
_Thread_queue_Process_timeout( the_thread );
diff --git a/cpukit/score/src/mpci.c b/cpukit/score/src/mpci.c
index 58f99c81e9..c6cddd86b8 100644
--- a/cpukit/score/src/mpci.c
+++ b/cpukit/score/src/mpci.c
@@ -2,7 +2,7 @@
* Multiprocessing Communications Interface (MPCI) Handler
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -328,7 +328,9 @@ Thread_Control *_MPCI_Process_response (
the_thread = _Thread_Get( the_packet->id, &location );
switch ( location ) {
case OBJECTS_ERROR:
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
+#endif
the_thread = NULL; /* IMPOSSIBLE */
break;
case OBJECTS_LOCAL:
diff --git a/cpukit/score/src/objectgetnameasstring.c b/cpukit/score/src/objectgetnameasstring.c
index 6ffc195aca..a8b72c9d98 100644
--- a/cpukit/score/src/objectgetnameasstring.c
+++ b/cpukit/score/src/objectgetnameasstring.c
@@ -55,8 +55,10 @@ char *_Objects_Get_name_as_string(
the_object = _Objects_Get( information, id, &location );
switch ( location ) {
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
/* not supported */
+#endif
case OBJECTS_ERROR:
return NULL;
diff --git a/cpukit/score/src/threaddelayended.c b/cpukit/score/src/threaddelayended.c
index 0f6998acbe..df87271010 100644
--- a/cpukit/score/src/threaddelayended.c
+++ b/cpukit/score/src/threaddelayended.c
@@ -2,7 +2,7 @@
* Thread Handler
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -54,7 +54,9 @@ void _Thread_Delay_ended(
the_thread = _Thread_Get( id, &location );
switch ( location ) {
case OBJECTS_ERROR:
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
+#endif
break;
case OBJECTS_LOCAL:
_Thread_Unblock( the_thread );
diff --git a/cpukit/score/src/threadqtimeout.c b/cpukit/score/src/threadqtimeout.c
index 1a135482f1..ae11f0b40f 100644
--- a/cpukit/score/src/threadqtimeout.c
+++ b/cpukit/score/src/threadqtimeout.c
@@ -2,7 +2,7 @@
* Thread Queue Handler
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -48,7 +48,9 @@ void _Thread_queue_Timeout(
the_thread = _Thread_Get( id, &location );
switch ( location ) {
case OBJECTS_ERROR:
+#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
+#endif
break;
case OBJECTS_LOCAL:
_Thread_queue_Process_timeout( the_thread );