Changeset 3692095 in rtems


Ignore:
Timestamp:
May 30, 2016, 8:41:22 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
73f2ddb
Parents:
0b713f89
git-author:
Sebastian Huber <sebastian.huber@…> (05/30/16 08:41:22)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/30/16 14:16:23)
Message:

rtems: Move MrsP semaphore operations

Move MrsP semaphore operations to a less prominent location. Fix field
name.

Location:
cpukit
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/monitor/mon-sema.c

    r0b713f89 r3692095  
    8383      case SEMAPHORE_VARIANT_MRSP:
    8484        canonical_sema->cur_count =
    85           rtems_sema->Core_control.mrsp.Resource.owner == NULL;
     85          rtems_sema->Core_control.MRSP.Resource.owner == NULL;
    8686        canonical_sema->max_count = 1;
    8787        break;
  • cpukit/rtems/include/rtems/rtems/sem.h

    r0b713f89 r3692095  
    9393
    9494#if defined(RTEMS_SMP)
    95     MRSP_Control mrsp;
     95    MRSP_Control MRSP;
    9696#endif
    9797  } Core_control;
  • cpukit/rtems/src/semcreate.c

    r0b713f89 r3692095  
    163163    the_semaphore->variant = SEMAPHORE_VARIANT_MRSP;
    164164    status = _MRSP_Initialize(
    165       &the_semaphore->Core_control.mrsp,
     165      &the_semaphore->Core_control.MRSP,
    166166      priority_ceiling,
    167167      executing,
  • cpukit/rtems/src/semdelete.c

    r0b713f89 r3692095  
    6767#if defined(RTEMS_SMP)
    6868    case SEMAPHORE_VARIANT_MRSP:
    69       status = _MRSP_Can_destroy( &the_semaphore->Core_control.mrsp );
     69      status = _MRSP_Can_destroy( &the_semaphore->Core_control.MRSP );
    7070      break;
    7171#endif
     
    9393#if defined(RTEMS_SMP)
    9494    case SEMAPHORE_VARIANT_MRSP:
    95       _MRSP_Destroy( &the_semaphore->Core_control.mrsp, &queue_context );
     95      _MRSP_Destroy( &the_semaphore->Core_control.MRSP, &queue_context );
    9696      break;
    9797#endif
  • cpukit/rtems/src/semobtain.c

    r0b713f89 r3692095  
    4141THREAD_QUEUE_OBJECT_ASSERT(
    4242  Semaphore_Control,
    43   Core_control.mrsp.Wait_queue
     43  Core_control.MRSP.Wait_queue
    4444);
    4545#endif
     
    7171
    7272  switch ( the_semaphore->variant ) {
    73 #if defined(RTEMS_SMP)
    74     case SEMAPHORE_VARIANT_MRSP:
    75       status = _MRSP_Seize(
    76         &the_semaphore->Core_control.mrsp,
    77         executing,
    78         wait,
    79         timeout,
    80         &queue_context
    81       );
    82       break;
    83 #endif
    8473    case SEMAPHORE_VARIANT_MUTEX_INHERIT_PRIORITY:
    8574      status = _CORE_recursive_mutex_Seize(
     
    113102      );
    114103      break;
     104#if defined(RTEMS_SMP)
     105    case SEMAPHORE_VARIANT_MRSP:
     106      status = _MRSP_Seize(
     107        &the_semaphore->Core_control.MRSP,
     108        executing,
     109        wait,
     110        timeout,
     111        &queue_context
     112      );
     113      break;
     114#endif
    115115    default:
    116116      _Assert(
  • cpukit/rtems/src/semrelease.c

    r0b713f89 r3692095  
    5050
    5151  switch ( the_semaphore->variant ) {
    52 #if defined(RTEMS_SMP)
    53     case SEMAPHORE_VARIANT_MRSP:
    54       status = _MRSP_Surrender(
    55         &the_semaphore->Core_control.mrsp,
    56         executing,
    57         &queue_context
    58       );
    59       break;
    60 #endif
    6152    case SEMAPHORE_VARIANT_MUTEX_INHERIT_PRIORITY:
    6253      status = _CORE_recursive_mutex_Surrender(
     
    9485      status = STATUS_SUCCESSFUL;
    9586      break;
     87#if defined(RTEMS_SMP)
     88    case SEMAPHORE_VARIANT_MRSP:
     89      status = _MRSP_Surrender(
     90        &the_semaphore->Core_control.MRSP,
     91        executing,
     92        &queue_context
     93      );
     94      break;
     95#endif
    9696    default:
    9797      _Assert( the_semaphore->variant == SEMAPHORE_VARIANT_COUNTING );
  • cpukit/rtems/src/semsetpriority.c

    r0b713f89 r3692095  
    5959#if defined(RTEMS_SMP)
    6060    case SEMAPHORE_VARIANT_MRSP:
    61       mrsp = &the_semaphore->Core_control.mrsp;
     61      mrsp = &the_semaphore->Core_control.MRSP;
    6262      scheduler_index = _Scheduler_Get_index_by_id( scheduler_id );
    6363
Note: See TracChangeset for help on using the changeset viewer.