Changeset b8596d8 in rtems


Ignore:
Timestamp:
Nov 28, 2007, 6:35:31 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
54444d5
Parents:
ae10dbd
Message:

2007-11-28 Joel Sherrill <joel.sherrill@…>

  • posix/Makefile.am, posix/preinstall.am, posix/src/cancel.c, posix/src/conddestroy.c, posix/src/condinit.c, posix/src/condsignalsupp.c, posix/src/condwaitsupp.c, posix/src/mqueueclose.c, posix/src/mqueuecreatesupp.c, posix/src/mqueuedeletesupp.c, posix/src/mqueuegetattr.c, posix/src/mqueuenotify.c, posix/src/mqueuerecvsupp.c, posix/src/mqueuesendsupp.c, posix/src/mqueuesetattr.c, posix/src/mqueueunlink.c, posix/src/mutexattrdestroy.c, posix/src/mutexattrgetprioceiling.c, posix/src/mutexattrgetprotocol.c, posix/src/mutexattrgetpshared.c, posix/src/mutexattrinit.c, posix/src/mutexattrsetprioceiling.c, posix/src/mutexattrsetprotocol.c, posix/src/mutexattrsetpshared.c, posix/src/mutexdefaultattributes.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/semaphorecreatesupp.c, posix/src/semaphoredeletesupp.c, posix/src/semaphorewaitsupp.c, posix/src/semclose.c, posix/src/semdestroy.c, posix/src/semgetvalue.c, posix/src/sempost.c, posix/src/semunlink.c, posix/src/types.c, score/cpu/powerpc/rtems/old-exceptions/cpu.h: Remove all pretense of POSIX MP support. The support in place was only a shell. This should make maintenance easier.
  • posix/include/rtems/posix/condmp.h, posix/include/rtems/posix/mqueuemp.h, posix/include/rtems/posix/mutexmp.h, posix/include/rtems/posix/pthreadmp.h, posix/include/rtems/posix/semaphoremp.h, posix/src/condmp.c, posix/src/mutexmp.c, posix/src/semaphoremp.c: Removed.
Location:
cpukit
Files:
8 deleted
42 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rae10dbd rb8596d8  
     12007-11-28      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * posix/Makefile.am, posix/preinstall.am, posix/src/cancel.c,
     4        posix/src/conddestroy.c, posix/src/condinit.c,
     5        posix/src/condsignalsupp.c, posix/src/condwaitsupp.c,
     6        posix/src/mqueueclose.c, posix/src/mqueuecreatesupp.c,
     7        posix/src/mqueuedeletesupp.c, posix/src/mqueuegetattr.c,
     8        posix/src/mqueuenotify.c, posix/src/mqueuerecvsupp.c,
     9        posix/src/mqueuesendsupp.c, posix/src/mqueuesetattr.c,
     10        posix/src/mqueueunlink.c, posix/src/mutexattrdestroy.c,
     11        posix/src/mutexattrgetprioceiling.c,
     12        posix/src/mutexattrgetprotocol.c, posix/src/mutexattrgetpshared.c,
     13        posix/src/mutexattrinit.c, posix/src/mutexattrsetprioceiling.c,
     14        posix/src/mutexattrsetprotocol.c, posix/src/mutexattrsetpshared.c,
     15        posix/src/mutexdefaultattributes.c, posix/src/mutexdestroy.c,
     16        posix/src/mutexgetprioceiling.c, posix/src/mutexinit.c,
     17        posix/src/mutexlocksupp.c, posix/src/mutexsetprioceiling.c,
     18        posix/src/mutexunlock.c, posix/src/semaphorecreatesupp.c,
     19        posix/src/semaphoredeletesupp.c, posix/src/semaphorewaitsupp.c,
     20        posix/src/semclose.c, posix/src/semdestroy.c,
     21        posix/src/semgetvalue.c, posix/src/sempost.c, posix/src/semunlink.c,
     22        posix/src/types.c, score/cpu/powerpc/rtems/old-exceptions/cpu.h:
     23        Remove all pretense of POSIX MP support. The support in place was
     24        only a shell. This should make maintenance easier.
     25        * posix/include/rtems/posix/condmp.h,
     26        posix/include/rtems/posix/mqueuemp.h,
     27        posix/include/rtems/posix/mutexmp.h,
     28        posix/include/rtems/posix/pthreadmp.h,
     29        posix/include/rtems/posix/semaphoremp.h, posix/src/condmp.c,
     30        posix/src/mutexmp.c, posix/src/semaphoremp.c: Removed.
     31
    1322007-11-27      Joel Sherrill <joel.sherrill@OARcorp.com>
    233
  • cpukit/posix/Makefile.am

    rae10dbd rb8596d8  
    4040    include/rtems/posix/rwlock.h include/rtems/posix/spinlock.h
    4141
    42 if HAS_MP
    43 include_rtems_posix_HEADERS += include/rtems/posix/condmp.h \
    44     include/rtems/posix/mqueuemp.h include/rtems/posix/mutexmp.h \
    45     include/rtems/posix/pthreadmp.h include/rtems/posix/semaphoremp.h
    46 endif
    47 
    4842include_rtems_posix_HEADERS += inline/rtems/posix/cond.inl \
    4943    inline/rtems/posix/key.inl inline/rtems/posix/mqueue.inl \
     
    7973    src/condattrgetpshared.c src/condattrinit.c src/condattrsetpshared.c \
    8074    src/condbroadcast.c src/conddefaultattributes.c src/conddestroy.c \
    81     src/condinit.c src/condmp.c src/condsignal.c src/condsignalsupp.c \
     75    src/condinit.c src/condsignal.c src/condsignalsupp.c \
    8276    src/condtimedwait.c src/condwait.c src/condwaitsupp.c
    8377
     
    106100    src/mutexattrsetpshared.c src/mutexdefaultattributes.c \
    107101    src/mutexdestroy.c src/mutexfromcorestatus.c src/mutexgetprioceiling.c \
    108     src/mutexinit.c src/mutexlock.c src/mutexlocksupp.c src/mutexmp.c \
     102    src/mutexinit.c src/mutexlock.c src/mutexlocksupp.c \
    109103    src/mutexsetprioceiling.c src/mutextimedlock.c src/mutextrylock.c \
    110104    src/mutexunlock.c
     
    146140## SEMAPHORE_C_FILES
    147141libposix_a_SOURCES += src/semaphore.c src/semaphorecreatesupp.c \
    148     src/semaphoredeletesupp.c src/semaphoremp.c src/semaphorenametoid.c \
     142    src/semaphoredeletesupp.c src/semaphorenametoid.c \
    149143    src/semaphorewaitsupp.c src/semclose.c src/semdestroy.c \
    150144    src/semgetvalue.c src/seminit.c src/semopen.c src/sempost.c \
  • cpukit/posix/preinstall.am

    rae10dbd rb8596d8  
    114114PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/spinlock.h
    115115
    116 if HAS_MP
    117 $(PROJECT_INCLUDE)/rtems/posix/condmp.h: include/rtems/posix/condmp.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp)
    118         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/condmp.h
    119 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/condmp.h
    120 
    121 $(PROJECT_INCLUDE)/rtems/posix/mqueuemp.h: include/rtems/posix/mqueuemp.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp)
    122         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/mqueuemp.h
    123 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/mqueuemp.h
    124 
    125 $(PROJECT_INCLUDE)/rtems/posix/mutexmp.h: include/rtems/posix/mutexmp.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp)
    126         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/mutexmp.h
    127 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/mutexmp.h
    128 
    129 $(PROJECT_INCLUDE)/rtems/posix/pthreadmp.h: include/rtems/posix/pthreadmp.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp)
    130         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/pthreadmp.h
    131 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/pthreadmp.h
    132 
    133 $(PROJECT_INCLUDE)/rtems/posix/semaphoremp.h: include/rtems/posix/semaphoremp.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp)
    134         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/semaphoremp.h
    135 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/semaphoremp.h
    136 endif
    137116$(PROJECT_INCLUDE)/rtems/posix/cond.inl: inline/rtems/posix/cond.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp)
    138117        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/cond.inl
  • cpukit/posix/src/cancel.c

    rae10dbd rb8596d8  
    4141  the_thread = _POSIX_Threads_Get( thread, &location );
    4242  switch ( location ) {
     43#if defined(RTEMS_MULTIPROCESSING)
     44    case OBJECTS_REMOTE:
     45#endif
    4346    case OBJECTS_ERROR:
    4447      return EINVAL;
    45 #if defined(RTEMS_MULTIPROCESSING)
    46     case OBJECTS_REMOTE:
    47       return POSIX_MP_NOT_IMPLEMENTED();
    48 #endif
    4948    case OBJECTS_LOCAL:
    5049      thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];
  • cpukit/posix/src/conddestroy.c

    rae10dbd rb8596d8  
    3535#if defined(RTEMS_MULTIPROCESSING)
    3636    case OBJECTS_REMOTE:
    37       _Thread_Dispatch();
    38       return POSIX_MP_NOT_IMPLEMENTED();
    39       return EINVAL;
    4037#endif
    41 
    4238    case OBJECTS_ERROR:
    4339      return EINVAL;
  • cpukit/posix/src/condinit.c

    rae10dbd rb8596d8  
    3636
    3737  /*
    38    *  XXX: Be careful about attributes when global!!!
     38   *  Be careful about attributes when global!!!
    3939   */
    4040
     
    5353    return ENOMEM;
    5454  }
    55 
    56 #if defined(RTEMS_MULTIPROCESSING)
    57   if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED &&
    58      !( _Objects_MP_Allocate_and_open( &_POSIX_Condition_variables_Information,
    59                 0, the_cond->Object.id, FALSE ) ) ) {
    60     _POSIX_Condition_variables_Free( the_cond );
    61     _Thread_Enable_dispatch();
    62     return EAGAIN;
    63   }
    64 #endif
    6555
    6656  the_cond->process_shared  = the_attr->process_shared;
     
    8474  *cond = the_cond->Object.id;
    8575
    86 #if defined(RTEMS_MULTIPROCESSING)
    87   if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )
    88     _POSIX_Condition_variables_MP_Send_process_packet(
    89       POSIX_CONDITION_VARIABLES_MP_ANNOUNCE_CREATE,
    90       the_cond->Object.id,
    91       0,                         /* Name not used */
    92       0                          /* Not used */
    93     );
    94 #endif
    95 
    9676  _Thread_Enable_dispatch();
    9777
  • cpukit/posix/src/condsignalsupp.c

    rae10dbd rb8596d8  
    3939#if defined(RTEMS_MULTIPROCESSING)
    4040    case OBJECTS_REMOTE:
    41       _Thread_Dispatch();
    42       return POSIX_MP_NOT_IMPLEMENTED();
    43       return EINVAL;
    4441#endif
    45 
    4642    case OBJECTS_ERROR:
    4743      return EINVAL;
     44
    4845    case OBJECTS_LOCAL:
    49 
    5046      do {
    5147        the_thread = _Thread_queue_Dequeue( &the_cond->Wait_queue );
  • cpukit/posix/src/condwaitsupp.c

    rae10dbd rb8596d8  
    4848#if defined(RTEMS_MULTIPROCESSING)
    4949    case OBJECTS_REMOTE:
    50       _Thread_Dispatch();
    51       return POSIX_MP_NOT_IMPLEMENTED();
    52       return EINVAL;
    5350#endif
    5451    case OBJECTS_ERROR:
  • cpukit/posix/src/mqueueclose.c

    rae10dbd rb8596d8  
    4848  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
    4949  switch ( location ) {
     50#if defined(RTEMS_MULTIPROCESSING)
     51    case OBJECTS_REMOTE:
     52#endif
    5053    case OBJECTS_ERROR:
    5154      rtems_set_errno_and_return_minus_one( EBADF );
    52 #if defined(RTEMS_MULTIPROCESSING)
    53     case OBJECTS_REMOTE:
    54       _Thread_Dispatch();
    55       return POSIX_MP_NOT_IMPLEMENTED();
    56       rtems_set_errno_and_return_minus_one( EINVAL );
    57 #endif
     55
    5856    case OBJECTS_LOCAL:
    5957      /*
  • cpukit/posix/src/mqueuecreatesupp.c

    rae10dbd rb8596d8  
    9090  }
    9191
    92 #if 0 && defined(RTEMS_MULTIPROCESSING)
    93   if ( pshared == PTHREAD_PROCESS_SHARED &&
    94        !( _Objects_MP_Allocate_and_open( &_POSIX_Message_queue_Information, 0,
    95                             the_mq->Object.id, FALSE ) ) ) {
    96     _POSIX_Message_queue_Free( the_mq );
    97     _Thread_Enable_dispatch();
    98     rtems_set_errno_and_return_minus_one( ENFILE );
    99   }
    100 #endif
    101 
    10292  the_mq = _POSIX_Message_queue_Allocate();
    10393  if ( !the_mq ) {
     
    140130      ) ) {
    141131
    142 #if 0 && defined(RTEMS_MULTIPROCESSING)
    143     if ( pshared == PTHREAD_PROCESS_SHARED )
    144       _Objects_MP_Close( &_POSIX_Message_queue_Information, the_mq->Object.id );
    145 #endif
    146 
    147132    _POSIX_Message_queue_Free( the_mq );
    148133    _Workspace_Free(name);
     
    159144  *message_queue = the_mq;
    160145
    161 #if 0 && defined(RTEMS_MULTIPROCESSING)
    162   if ( pshared == PTHREAD_PROCESS_SHARED )
    163     _POSIX_Message_queue_MP_Send_process_packet(
    164       POSIX_MESSAGE_QUEUE_MP_ANNOUNCE_CREATE,
    165       the_mq->Object.id,
    166       (char *) name,
    167       0                          /* Not used */
    168     );
    169 #endif
    170 
    171146  _Thread_Enable_dispatch();
    172147  return 0;
  • cpukit/posix/src/mqueuedeletesupp.c

    rae10dbd rb8596d8  
    5858    _POSIX_Message_queue_Free( the_mq );
    5959
    60 #if 0 && defined(RTEMS_MULTIPROCESSING)
    61     if ( the_mq->process_shared == PTHREAD_PROCESS_SHARED ) {
    62 
    63       _Objects_MP_Close(
    64         &_POSIX_Message_queue_Information,
    65         the_mq->Object.id
    66       );
    67 
    68       _POSIX_Message_queue_MP_Send_process_packet(
    69         POSIX_MESSAGE_QUEUE_MP_ANNOUNCE_DELETE,
    70         the_mq->Object.id,
    71         0,                         /* Not used */
    72         0                          /* Not used */
    73       );
    74     }
    75 #endif
    76 
    7760  }
    7861}
  • cpukit/posix/src/mqueuegetattr.c

    rae10dbd rb8596d8  
    5353  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
    5454  switch ( location ) {
     55#if defined(RTEMS_MULTIPROCESSING)
     56    case OBJECTS_REMOTE:
     57#endif
    5558    case OBJECTS_ERROR:
    5659      rtems_set_errno_and_return_minus_one( EBADF );
    57 #if defined(RTEMS_MULTIPROCESSING)
    58     case OBJECTS_REMOTE:
    59       _Thread_Dispatch();
    60       return POSIX_MP_NOT_IMPLEMENTED();
    61       rtems_set_errno_and_return_minus_one( EINVAL );
    62 #endif
    6360    case OBJECTS_LOCAL:
    6461      the_mq = the_mq_fd->Queue;
  • cpukit/posix/src/mqueuenotify.c

    rae10dbd rb8596d8  
    7171  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
    7272  switch ( location ) {
     73#if defined(RTEMS_MULTIPROCESSING)
     74    case OBJECTS_REMOTE:
     75#endif
    7376    case OBJECTS_ERROR:
    7477      rtems_set_errno_and_return_minus_one( EBADF );
    75 #if defined(RTEMS_MULTIPROCESSING)
    76     case OBJECTS_REMOTE:
    77       _Thread_Dispatch();
    78       return POSIX_MP_NOT_IMPLEMENTED();
    79       rtems_set_errno_and_return_minus_one( EINVAL );
    80 #endif
    8178    case OBJECTS_LOCAL:
    8279      the_mq = the_mq_fd->Queue;
  • cpukit/posix/src/mqueuerecvsupp.c

    rae10dbd rb8596d8  
    5656  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
    5757  switch ( location ) {
     58#if defined(RTEMS_MULTIPROCESSING)
     59    case OBJECTS_REMOTE:
     60#endif
    5861    case OBJECTS_ERROR:
    5962      rtems_set_errno_and_return_minus_one( EBADF );
    60 #if defined(RTEMS_MULTIPROCESSING)
    61     case OBJECTS_REMOTE:
    62       _Thread_Dispatch();
    63       return POSIX_MP_NOT_IMPLEMENTED();
    64       rtems_set_errno_and_return_minus_one( EINVAL );
    65 #endif
    6663    case OBJECTS_LOCAL:
    6764      if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) {
  • cpukit/posix/src/mqueuesendsupp.c

    rae10dbd rb8596d8  
    6262  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
    6363  switch ( location ) {
     64#if defined(RTEMS_MULTIPROCESSING)
     65    case OBJECTS_REMOTE:
     66#endif
    6467    case OBJECTS_ERROR:
    6568      rtems_set_errno_and_return_minus_one( EBADF );
    66 
    67 #if defined(RTEMS_MULTIPROCESSING)
    68     case OBJECTS_REMOTE:
    69       _Thread_Dispatch();
    70       return POSIX_MP_NOT_IMPLEMENTED();
    71       rtems_set_errno_and_return_minus_one( EINVAL );
    72 #endif
    7369
    7470    case OBJECTS_LOCAL:
     
    8581        msg_len,
    8682        mqdes,      /* mqd_t is an object id */
    87 #if defined(RTEMS_MULTIPROCESSING)
    88         NULL,      /* XXX _POSIX_Message_queue_Core_message_queue_mp_support*/
    89 #else
    9083        NULL,
    91 #endif
    9284        _POSIX_Message_queue_Priority_to_core( msg_prio ),
    9385         (the_mq_fd->oflag & O_NONBLOCK) ? FALSE : TRUE,
  • cpukit/posix/src/mqueuesetattr.c

    rae10dbd rb8596d8  
    5353  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
    5454  switch ( location ) {
     55#if defined(RTEMS_MULTIPROCESSING)
     56    case OBJECTS_REMOTE:
     57#endif
    5558    case OBJECTS_ERROR:
    5659      rtems_set_errno_and_return_minus_one( EBADF );
    57 #if defined(RTEMS_MULTIPROCESSING)
    58     case OBJECTS_REMOTE:
    59       _Thread_Dispatch();
    60       return POSIX_MP_NOT_IMPLEMENTED();
    61       rtems_set_errno_and_return_minus_one( EINVAL );
    62 #endif
    6360    case OBJECTS_LOCAL:
    6461
  • cpukit/posix/src/mqueueunlink.c

    rae10dbd rb8596d8  
    5555   }
    5656
    57   /*
    58    *  Don't support unlinking a remote message queue.
    59    */
    60 
    61 #if defined(RTEMS_MULTIPROCESSING)
    62   if ( !_Objects_Is_local_id(the_mq_id) ) {
    63     _Thread_Enable_dispatch();
    64     rtems_set_errno_and_return_minus_one( ENOSYS );
    65   }
    66 #endif
    67 
    6857  the_mq = (POSIX_Message_queue_Control *) _Objects_Get_local_object(
    6958    &_POSIX_Message_queue_Information,
    7059    _Objects_Get_index( the_mq_id )
    7160  );
    72 
    73 #if 0 && defined(RTEMS_MULTIPROCESSING)
    74   if ( the_mq->process_shared == PTHREAD_PROCESS_SHARED ) {
    75     _Objects_MP_Close( &_POSIX_Message_queue_Information, the_mq_id );
    76   }
    77 #endif
    78 
    7961
    8062  the_mq->linked = FALSE;
  • cpukit/posix/src/mutexattrdestroy.c

    rae10dbd rb8596d8  
    1313#include <rtems/score/coremutex.h>
    1414#include <rtems/score/watchdog.h>
    15 #if defined(RTEMS_MULTIPROCESSING)
    16 #include <rtems/score/mpci.h>
    17 #endif
    1815#include <rtems/posix/mutex.h>
    1916#include <rtems/posix/priority.h>
  • cpukit/posix/src/mutexattrgetprioceiling.c

    rae10dbd rb8596d8  
    1313#include <rtems/score/coremutex.h>
    1414#include <rtems/score/watchdog.h>
    15 #if defined(RTEMS_MULTIPROCESSING)
    16 #include <rtems/score/mpci.h>
    17 #endif
    1815#include <rtems/posix/mutex.h>
    1916#include <rtems/posix/priority.h>
  • cpukit/posix/src/mutexattrgetprotocol.c

    rae10dbd rb8596d8  
    1313#include <rtems/score/coremutex.h>
    1414#include <rtems/score/watchdog.h>
    15 #if defined(RTEMS_MULTIPROCESSING)
    16 #include <rtems/score/mpci.h>
    17 #endif
    1815#include <rtems/posix/mutex.h>
    1916#include <rtems/posix/priority.h>
  • cpukit/posix/src/mutexattrgetpshared.c

    rae10dbd rb8596d8  
    1313#include <rtems/score/coremutex.h>
    1414#include <rtems/score/watchdog.h>
    15 #if defined(RTEMS_MULTIPROCESSING)
    16 #include <rtems/score/mpci.h>
    17 #endif
    1815#include <rtems/posix/mutex.h>
    1916#include <rtems/posix/priority.h>
  • cpukit/posix/src/mutexattrinit.c

    rae10dbd rb8596d8  
    1313#include <rtems/score/coremutex.h>
    1414#include <rtems/score/watchdog.h>
    15 #if defined(RTEMS_MULTIPROCESSING)
    16 #include <rtems/score/mpci.h>
    17 #endif
    1815#include <rtems/posix/mutex.h>
    1916#include <rtems/posix/priority.h>
  • cpukit/posix/src/mutexattrsetprioceiling.c

    rae10dbd rb8596d8  
    1313#include <rtems/score/coremutex.h>
    1414#include <rtems/score/watchdog.h>
    15 #if defined(RTEMS_MULTIPROCESSING)
    16 #include <rtems/score/mpci.h>
    17 #endif
    1815#include <rtems/posix/mutex.h>
    1916#include <rtems/posix/priority.h>
  • cpukit/posix/src/mutexattrsetprotocol.c

    rae10dbd rb8596d8  
    1313#include <rtems/score/coremutex.h>
    1414#include <rtems/score/watchdog.h>
    15 #if defined(RTEMS_MULTIPROCESSING)
    16 #include <rtems/score/mpci.h>
    17 #endif
    1815#include <rtems/posix/mutex.h>
    1916#include <rtems/posix/priority.h>
  • cpukit/posix/src/mutexattrsetpshared.c

    rae10dbd rb8596d8  
    1313#include <rtems/score/coremutex.h>
    1414#include <rtems/score/watchdog.h>
    15 #if defined(RTEMS_MULTIPROCESSING)
    16 #include <rtems/score/mpci.h>
    17 #endif
    1815#include <rtems/posix/mutex.h>
    1916#include <rtems/posix/priority.h>
  • cpukit/posix/src/mutexdefaultattributes.c

    rae10dbd rb8596d8  
    1313#include <rtems/score/coremutex.h>
    1414#include <rtems/score/watchdog.h>
    15 #if defined(RTEMS_MULTIPROCESSING)
    16 #include <rtems/score/mpci.h>
    17 #endif
    1815#include <rtems/posix/mutex.h>
    1916#include <rtems/posix/priority.h>
  • cpukit/posix/src/mutexdestroy.c

    rae10dbd rb8596d8  
    3636#if defined(RTEMS_MULTIPROCESSING)
    3737    case OBJECTS_REMOTE:
    38       _Thread_Dispatch();
    39       return POSIX_MP_NOT_IMPLEMENTED();
    40       return EINVAL;
    4138#endif
    4239    case OBJECTS_ERROR:
  • cpukit/posix/src/mutexgetprioceiling.c

    rae10dbd rb8596d8  
    4040#if defined(RTEMS_MULTIPROCESSING)
    4141    case OBJECTS_REMOTE:
    42       return POSIX_MP_NOT_IMPLEMENTED();   /* XXX feels questionable */
    4342#endif
    4443    case OBJECTS_ERROR:
  • cpukit/posix/src/mutexinit.c

    rae10dbd rb8596d8  
    102102  assert( the_attr->process_shared == PTHREAD_PROCESS_PRIVATE );
    103103
    104 #if defined(RTEMS_MULTIPROCESSING)
    105104  if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )
    106     return POSIX_MP_NOT_IMPLEMENTED();
    107 #endif
     105    return ENOSYS;
    108106
    109107  /*
  • cpukit/posix/src/mutexlocksupp.c

    rae10dbd rb8596d8  
    4242#if defined(RTEMS_MULTIPROCESSING)
    4343    case OBJECTS_REMOTE:
    44       return _POSIX_Mutex_MP_Send_request_packet(
    45           POSIX_MUTEX_MP_OBTAIN_REQUEST,
    46           *mutex,
    47           0,   /* must define the option set */
    48           WATCHDOG_NO_TIMEOUT
    49       );
    5044#endif
    5145    case OBJECTS_ERROR:
  • cpukit/posix/src/mutexsetprioceiling.c

    rae10dbd rb8596d8  
    5656#if defined(RTEMS_MULTIPROCESSING)
    5757    case OBJECTS_REMOTE:
    58       /*  XXX It feels questionable to set the ceiling on a remote mutex. */
    59       return EINVAL;
    6058#endif
    6159    case OBJECTS_ERROR:
  • cpukit/posix/src/mutexunlock.c

    rae10dbd rb8596d8  
    3939#if defined(RTEMS_MULTIPROCESSING)
    4040    case OBJECTS_REMOTE:
    41       return _POSIX_Mutex_MP_Send_request_packet(
    42           POSIX_MUTEX_MP_RELEASE_REQUEST,
    43           *mutex,
    44           0,                    /* Not used */
    45           MPCI_DEFAULT_TIMEOUT
    46       );
    4741#endif
    4842    case OBJECTS_ERROR:
  • cpukit/posix/src/semaphorecreatesupp.c

    rae10dbd rb8596d8  
    6464  }
    6565
    66 #if defined(RTEMS_MULTIPROCESSING)
    67   if ( pshared == PTHREAD_PROCESS_SHARED &&
    68        !( _Objects_MP_Allocate_and_open( &_POSIX_Semaphore_Information, 0,
    69                             the_semaphore->Object.id, FALSE ) ) ) {
    70     _POSIX_Semaphore_Free( the_semaphore );
    71     _Thread_Enable_dispatch();
    72     rtems_set_errno_and_return_minus_one( EAGAIN );
    73   }
    74 #endif
    75 
    7666  the_semaphore->process_shared  = pshared;
    7767
     
    114104  *the_sem = the_semaphore;
    115105
    116 #if defined(RTEMS_MULTIPROCESSING)
    117   if ( pshared == PTHREAD_PROCESS_SHARED )
    118     _POSIX_Semaphore_MP_Send_process_packet(
    119       POSIX_SEMAPHORE_MP_ANNOUNCE_CREATE,
    120       the_semaphore->Object.id,
    121       name_p,
    122       0                           /* proxy id - Not used */
    123     );
    124 #endif
    125 
    126106  _Thread_Enable_dispatch();
    127107  return 0;
  • cpukit/posix/src/semaphoredeletesupp.c

    rae10dbd rb8596d8  
    3535      _CORE_semaphore_Flush(
    3636        &the_semaphore->Semaphore,
    37 #if defined(RTEMS_MULTIPROCESSING)
    38         _POSIX_Semaphore_MP_Send_object_was_deleted,
    39 #else
    4037        NULL,
    41 #endif
    42         -1  /* XXX should also seterrno -> EINVAL */
     38        -1
    4339      );
    4440
    4541    _POSIX_Semaphore_Free( the_semaphore );
    46 
    47 #if defined(RTEMS_MULTIPROCESSING)
    48     if ( the_semaphore->process_shared == PTHREAD_PROCESS_SHARED ) {
    49 
    50       _Objects_MP_Close(
    51         &_POSIX_Semaphore_Information,
    52         the_semaphore->Object.id
    53       );
    54 
    55       _POSIX_Semaphore_MP_Send_process_packet(
    56         POSIX_SEMAPHORE_MP_ANNOUNCE_DELETE,
    57         the_semaphore->Object.id,
    58         0,                         /* Not used */
    59         0                          /* Not used */
    60       );
    61     }
    62 #endif
    63 
    6442  }
    6543}
  • cpukit/posix/src/semaphorewaitsupp.c

    rae10dbd rb8596d8  
    3737  the_semaphore = _POSIX_Semaphore_Get( sem, &location );
    3838  switch ( location ) {
     39#if defined(RTEMS_MULTIPROCESSING)
     40    case OBJECTS_REMOTE:
     41#endif
    3942    case OBJECTS_ERROR:
    4043      rtems_set_errno_and_return_minus_one( EINVAL );
    41 #if defined(RTEMS_MULTIPROCESSING)
    42     case OBJECTS_REMOTE:
    43       _Thread_Dispatch();
    44       rtems_set_errno_and_return_minus_one( EINVAL );
    45 #endif
    4644    case OBJECTS_LOCAL:
    4745      _CORE_semaphore_Seize(
  • cpukit/posix/src/semclose.c

    rae10dbd rb8596d8  
    4040  the_semaphore = _POSIX_Semaphore_Get( sem, &location );
    4141  switch ( location ) {
     42#if defined(RTEMS_MULTIPROCESSING)
     43    case OBJECTS_REMOTE:
     44#endif
    4245    case OBJECTS_ERROR:
    4346      rtems_set_errno_and_return_minus_one( EINVAL );
    44 #if defined(RTEMS_MULTIPROCESSING)
    45     case OBJECTS_REMOTE:
    46       _Thread_Dispatch();
    47       return POSIX_MP_NOT_IMPLEMENTED();
    48       rtems_set_errno_and_return_minus_one( EINVAL );
    49 #endif
    5047    case OBJECTS_LOCAL:
    5148      the_semaphore->open_count -= 1;
  • cpukit/posix/src/semdestroy.c

    rae10dbd rb8596d8  
    3535  the_semaphore = _POSIX_Semaphore_Get( sem, &location );
    3636  switch ( location ) {
     37#if defined(RTEMS_MULTIPROCESSING)
     38    case OBJECTS_REMOTE:
     39#endif
    3740    case OBJECTS_ERROR:
    3841      rtems_set_errno_and_return_minus_one( EINVAL );
    39 #if defined(RTEMS_MULTIPROCESSING)
    40     case OBJECTS_REMOTE:
    41       _Thread_Dispatch();
    42       return POSIX_MP_NOT_IMPLEMENTED();
    43       rtems_set_errno_and_return_minus_one( EINVAL );
    44 #endif
    4542    case OBJECTS_LOCAL:
    4643      /*
  • cpukit/posix/src/semgetvalue.c

    rae10dbd rb8596d8  
    3636  the_semaphore = _POSIX_Semaphore_Get( sem, &location );
    3737  switch ( location ) {
     38#if defined(RTEMS_MULTIPROCESSING)
     39    case OBJECTS_REMOTE:
     40#endif
    3841    case OBJECTS_ERROR:
    3942      rtems_set_errno_and_return_minus_one( EINVAL );
    40 #if defined(RTEMS_MULTIPROCESSING)
    41     case OBJECTS_REMOTE:
    42       _Thread_Dispatch();
    43       return POSIX_MP_NOT_IMPLEMENTED();
    44       rtems_set_errno_and_return_minus_one( EINVAL );
    45 #endif
    4643    case OBJECTS_LOCAL:
    4744      *sval = _CORE_semaphore_Get_count( &the_semaphore->Semaphore );
  • cpukit/posix/src/sempost.c

    rae10dbd rb8596d8  
    3535  the_semaphore = _POSIX_Semaphore_Get( sem, &location );
    3636  switch ( location ) {
     37#if defined(RTEMS_MULTIPROCESSING)
     38    case OBJECTS_REMOTE:
     39#endif
    3740    case OBJECTS_ERROR:
    3841      rtems_set_errno_and_return_minus_one( EINVAL );
    39 #if defined(RTEMS_MULTIPROCESSING)
    40     case OBJECTS_REMOTE:
    41       _Thread_Dispatch();
    42       return POSIX_MP_NOT_IMPLEMENTED();
    43       rtems_set_errno_and_return_minus_one( EINVAL );
    44 #endif
    4542    case OBJECTS_LOCAL:
    4643      _CORE_semaphore_Surrender(
  • cpukit/posix/src/semunlink.c

    rae10dbd rb8596d8  
    4747  }
    4848
    49   /*
    50    *  Don't support unlinking a remote semaphore.
    51    */
    52 
    53 #if defined(RTEMS_MULTIPROCESSING)
    54   if ( !_Objects_Is_local_id((Objects_Id)the_semaphore_id) ) {
    55     _Thread_Enable_dispatch();
    56     rtems_set_errno_and_return_minus_one( ENOSYS );
    57   }
    58 #endif
    59 
    6049  the_semaphore = (POSIX_Semaphore_Control *) _Objects_Get_local_object(
    6150    &_POSIX_Semaphore_Information,
    6251    _Objects_Get_index( the_semaphore_id )
    6352  );
    64 
    65 #if defined(RTEMS_MULTIPROCESSING)
    66   if ( the_semaphore->process_shared == PTHREAD_PROCESS_SHARED ) {
    67     _Objects_MP_Close( &_POSIX_Semaphore_Information, the_semaphore_id );
    68   }
    69 #endif
    7053
    7154  the_semaphore->linked = FALSE;
  • cpukit/posix/src/types.c

    rae10dbd rb8596d8  
    2424#include <assert.h>
    2525
    26 #if defined(RTEMS_MULTIPROCESSING)
    27 int POSIX_MP_NOT_IMPLEMENTED()
    28 {
    29   assert( 0 );
    30   return 0;
    31 }
    32 #endif
    33 
    3426int POSIX_BOTTOM_REACHED()
    3527{
  • cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h

    rae10dbd rb8596d8  
    196196  /* end of fields required on all CPUs */
    197197
     198#if 0
    198199  uint32_t     clicks_per_usec;        /* Timer clicks per microsecond */
    199200  void       (*spurious_handler)(uint32_t   vector, CPU_Interrupt_frame *);
     
    215216  || defined(mpc860) || defined(mpc821) || defined(mpc8260))
    216217  uint32_t     clock_speed;            /* Speed of CPU in Hz */
     218#endif
    217219#endif
    218220}   rtems_cpu_table;
Note: See TracChangeset for help on using the changeset viewer.