forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -1,3 +1,72 @@
|
||||
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,
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 ];
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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 ) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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 ];
|
||||
|
||||
@@ -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 ];
|
||||
|
||||
@@ -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:
|
||||
/*
|
||||
|
||||
@@ -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 ];
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user