Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

Ticket #1388: pr1388.diff

File pr1388.diff, 4.4 KB (added by Joel Sherrill, on 03/02/09 at 15:11:33)

Patch for 4.10

  • cpukit/rtems/src/semcreate.c

    ? testsuites/sptests/sp09/.screen09.c.swp
    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/semcreate.c,v
    retrieving revision 1.17
    diff -u -r1.17 semcreate.c
     
    1515 *     + acquire a semaphore
    1616 *     + release a semaphore
    1717 *
    18  *  COPYRIGHT (c) 1989-1999.
     18 *  COPYRIGHT (c) 1989-2009.
    1919 *  On-Line Applications Research Corporation (OAR).
    2020 *
    2121 *  The license and distribution terms for this file may be
     
    111111
    112112  }
    113113
     114  if ( _Attributes_Is_inherit_priority( attribute_set ) &&
     115       _Attributes_Is_priority_ceiling( attribute_set ) )
     116    return RTEMS_NOT_DEFINED;
     117
    114118  if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) )
    115119    return RTEMS_INVALID_NUMBER;
    116120
  • testsuites/sptests/sp09/screen05.c

    RCS file: /usr1/CVS/rtems/testsuites/sptests/sp09/screen05.c,v
    retrieving revision 1.16
    diff -u -r1.16 screen05.c
     
    66 *
    77 *  Output parameters:  NONE
    88 *
    9  *  COPYRIGHT (c) 1989-1999.
     9 *  COPYRIGHT (c) 1989-2009.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
    1212 *  The license and distribution terms for this file may be
     
    8585    RTEMS_NOT_DEFINED,
    8686    "rtems_semaphore_create of RTEMS_FIFO RTEMS_INHERIT_PRIORITY"
    8787  );
    88   puts( "TA1 - rtems_semaphore_create - RTEMS_NOT_DEFINED" );
     88  puts( "TA1 - rtems_semaphore_create - FIFO and inherit - RTEMS_NOT_DEFINED" );
     89
     90  status = rtems_semaphore_create(
     91    Semaphore_name[ 1 ],
     92    1,
     93    RTEMS_PRIORITY_CEILING | RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,
     94    RTEMS_NO_PRIORITY,
     95    &Junk_id
     96  );
     97  fatal_directive_status(
     98    status,
     99    RTEMS_NOT_DEFINED,
     100    "rtems_semaphore_create of RTEMS_FIFO RTEMS_CEILING_PRIORITY"
     101  );
     102  puts( "TA1 - rtems_semaphore_create - FIFO and ceiling - RTEMS_NOT_DEFINED" );
     103
     104  status = rtems_semaphore_create(
     105    Semaphore_name[ 1 ],
     106    1,
     107    RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY_CEILING |
     108      RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY,
     109    10,
     110    &Junk_id
     111  );
     112  fatal_directive_status(
     113    status,
     114    RTEMS_NOT_DEFINED,
     115    "rtems_semaphore_create of binary with ceiling and inherit"
     116  );
     117  puts(
     118    "TA1 - rtems_semaphore_create - ceiling and inherit - RTEMS_NOT_DEFINED" );
    89119
    90120  status = rtems_semaphore_create(
    91121    Semaphore_name[ 1 ],
  • testsuites/sptests/sp09/screen09.c

    RCS file: /usr1/CVS/rtems/testsuites/sptests/sp09/screen09.c,v
    retrieving revision 1.14
    diff -u -r1.14 screen09.c
     
    66 *
    77 *  Output parameters:  NONE
    88 *
    9  *  COPYRIGHT (c) 1989-1999.
     9 *  COPYRIGHT (c) 1989-2009.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
    1212 *  The license and distribution terms for this file may be
     
    2424  rtems_status_code status;
    2525  rtems_isr_entry   old_service_routine;
    2626
    27 #if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE)
    28   puts( "TRUE" );
    29 #else
    30   puts( "FALSE" );
    31 #endif
    32 
    3327  #if ((CPU_SIMPLE_VECTORED_INTERRUPTS == FALSE) || \
    3428       defined(_C3x) || defined(_C4x))
    3529    puts(
  • testsuites/sptests/sp09/sp09.scn

    RCS file: /usr1/CVS/rtems/testsuites/sptests/sp09/sp09.scn,v
    retrieving revision 1.15
    diff -u -r1.15 sp09.scn
     
    7272TA1 - rtems_semaphore_create - 1 - RTEMS_SUCCESSFUL
    7373TA1 - rtems_semaphore_create - 2 - RTEMS_SUCCESSFUL
    7474TA1 - rtems_semaphore_create - 3 - RTEMS_TOO_MANY
    75 TA1 - rtems_semaphore_create - RTEMS_NOT_DEFINED
     75TA1 - rtems_semaphore_create - FIFO and inherit - RTEMS_NOT_DEFINED
     76TA1 - rtems_semaphore_create - FIFO and ceiling - RTEMS_NOT_DEFINED
     77TA1 - rtems_semaphore_create - ceiling and inherit - RTEMS_NOT_DEFINED
    7678TA1 - rtems_semaphore_create - RTEMS_NOT_DEFINED
    7779TA1 - rtems_semaphore_create - RTEMS_INVALID_NUMBER
    7880TA1 - rtems_semaphore_create - RTEMS_MP_NOT_CONFIGURED