Changeset 7f6a24ab in rtems for c/src/tests


Ignore:
Timestamp:
08/28/95 15:30:29 (28 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
5072b07
Parents:
5250ff39
Message:

Added unused priority ceiling parameter to rtems_semaphore_create.

Rearranged code to created thread handler routines to initialize,
start, restart, and "close/delete" a thread.

Made internal threads their own object class. This now uses the
thread support routines for starting and initializing a thread.

Insured deleted tasks are freed to the Inactive pool associated with the
correct Information block.

Added an RTEMS API specific data area to the thread control block.

Beginnings of removing the word "rtems" from the core.

Location:
c/src/tests
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/mptests/mp08/init.c

    r5250ff39 r7f6a24ab  
    5151      1,
    5252      RTEMS_GLOBAL,
     53      RTEMS_NO_PRIORITY,
    5354      &Semaphore_id[ 1 ]
    5455    );
  • c/src/tests/mptests/mp10/init.c

    r5250ff39 r7f6a24ab  
    7070      0,
    7171      RTEMS_GLOBAL | RTEMS_PRIORITY,
     72      RTEMS_NO_PRIORITY,
    7273      &Semaphore_id[ 1 ]
    7374    );
  • c/src/tests/mptests/mp11/init.c

    r5250ff39 r7f6a24ab  
    8686      1,
    8787      RTEMS_GLOBAL,
     88      RTEMS_NO_PRIORITY,
    8889      &junk_id
    8990    );
  • c/src/tests/mptests/mp13/init.c

    r5250ff39 r7f6a24ab  
    6363      1,
    6464      RTEMS_GLOBAL | RTEMS_PRIORITY,
     65      RTEMS_NO_PRIORITY,
    6566      &Semaphore_id[ 1 ]
    6667    );
  • c/src/tests/mptests/mp14/init.c

    r5250ff39 r7f6a24ab  
    9595      1,
    9696      RTEMS_GLOBAL,
     97      RTEMS_NO_PRIORITY,
    9798      &Semaphore_id[ 1 ]
    9899    );
  • c/src/tests/sptests/sp09/screen05.c

    r5250ff39 r7f6a24ab  
    2424  rtems_status_code status;
    2525
    26   status = rtems_semaphore_create( 0, 1, RTEMS_DEFAULT_ATTRIBUTES, &Junk_id );
     26  status = rtems_semaphore_create(
     27    0,
     28    1,
     29    RTEMS_DEFAULT_ATTRIBUTES,
     30    RTEMS_NO_PRIORITY,
     31    &Junk_id
     32  );
    2733  fatal_directive_status(
    2834    status,
     
    3642    1,
    3743    RTEMS_DEFAULT_ATTRIBUTES,
     44    RTEMS_NO_PRIORITY,
    3845    &Semaphore_id[ 1 ]
    3946  );
     
    4552    1,
    4653    RTEMS_BINARY_SEMAPHORE,
     54    RTEMS_NO_PRIORITY,
    4755    &Semaphore_id[ 2 ]
    4856  );
     
    5563          1,
    5664          RTEMS_DEFAULT_ATTRIBUTES,
    57           &Junk_id);
     65          RTEMS_NO_PRIORITY,
     66          &Junk_id
     67      );
    5868  } while (status == RTEMS_SUCCESSFUL);
    5969
     
    6979    1,
    7080    RTEMS_INHERIT_PRIORITY | RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,
     81    RTEMS_NO_PRIORITY,
    7182    &Junk_id
    7283  );
     
    8293    1,
    8394    RTEMS_INHERIT_PRIORITY | RTEMS_COUNTING_SEMAPHORE | RTEMS_PRIORITY,
     95    RTEMS_NO_PRIORITY,
    8496    &Junk_id
    8597  );
     
    95107    2,
    96108    RTEMS_BINARY_SEMAPHORE,
     109    RTEMS_NO_PRIORITY,
    97110    &Junk_id
    98111  );
     
    108121    1,
    109122    RTEMS_GLOBAL,
     123    RTEMS_NO_PRIORITY,
    110124    &Junk_id
    111125  );
  • c/src/tests/sptests/sp12/init.c

    r5250ff39 r7f6a24ab  
    5454
    5555  status = rtems_semaphore_create(
    56      Semaphore_name[ 1 ],
    57      1,
    58      RTEMS_DEFAULT_ATTRIBUTES,
    59      &Semaphore_id[ 1 ]
     56    Semaphore_name[ 1 ],
     57    1,
     58    RTEMS_DEFAULT_ATTRIBUTES,
     59    RTEMS_NO_PRIORITY,
     60    &Semaphore_id[ 1 ]
    6061  );
    6162  directive_failed( status, "rtems_semaphore_create of SM1" );
     
    6566    0,
    6667    RTEMS_PRIORITY,
     68    RTEMS_NO_PRIORITY,
    6769    &Semaphore_id[ 2 ]
    6870  );
     
    7375    1,
    7476    RTEMS_DEFAULT_ATTRIBUTES,
     77    RTEMS_NO_PRIORITY,
    7578    &Semaphore_id[ 3 ]
    7679  );
     
    9598    0,
    9699    RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY | RTEMS_INHERIT_PRIORITY,
     100    RTEMS_NO_PRIORITY,
    97101    &Semaphore_id[ 2 ]
    98102  );
     
    111115    1,
    112116    RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY | RTEMS_INHERIT_PRIORITY,
     117    RTEMS_NO_PRIORITY,
    113118    &Semaphore_id[ 2 ]
    114119  );
     
    126131    0,
    127132    RTEMS_PRIORITY,
     133    RTEMS_NO_PRIORITY,
    128134    &Semaphore_id[ 2 ]
    129135  );
  • c/src/tests/tmtests/tm01/task1.c

    r5250ff39 r7f6a24ab  
    8383      OPERATION_COUNT,
    8484      RTEMS_DEFAULT_MODES,
     85      RTEMS_NO_PRIORITY,
    8586      &smid
    8687    );
     
    111112    OPERATION_COUNT,
    112113    RTEMS_DEFAULT_ATTRIBUTES,
     114    RTEMS_NO_PRIORITY,
    113115    &smid
    114116  );
  • c/src/tests/tmtests/tm02/task1.c

    r5250ff39 r7f6a24ab  
    108108    0,
    109109    RTEMS_DEFAULT_ATTRIBUTES,
     110    RTEMS_NO_PRIORITY,
    110111    &Semaphore_id
    111112  );
  • c/src/tests/tmtests/tm03/task1.c

    r5250ff39 r7f6a24ab  
    7272    0,
    7373    RTEMS_DEFAULT_ATTRIBUTES,
     74    RTEMS_NO_PRIORITY,
    7475    &Semaphore_id
    7576  );
  • c/src/tests/tmtests/tm04/task1.c

    r5250ff39 r7f6a24ab  
    7878    0,
    7979    RTEMS_DEFAULT_ATTRIBUTES,
     80    RTEMS_NO_PRIORITY,
    8081    &Semaphore_id
    8182  );
  • c/src/tests/tmtests/tm21/task1.c

    r5250ff39 r7f6a24ab  
    8383      OPERATION_COUNT,
    8484      RTEMS_DEFAULT_ATTRIBUTES,
     85      RTEMS_NO_PRIORITY,
    8586      &id
    8687    );
  • c/src/tests/tmtests/tm25/task1.c

    r5250ff39 r7f6a24ab  
    4242    0,
    4343    RTEMS_DEFAULT_ATTRIBUTES,
     44    RTEMS_NO_PRIORITY,
    4445    &Semaphore_id
    4546  );
  • c/src/tests/tmtests/tm26/task1.c

    r5250ff39 r7f6a24ab  
    142142    OPERATION_COUNT,
    143143    RTEMS_DEFAULT_ATTRIBUTES,
     144    RTEMS_NO_PRIORITY,
    144145    &Semaphore_id
    145146  );
  • c/src/tests/tmtests/tmoverhd/dumrtems.h

    r5250ff39 r7f6a24ab  
    173173           Empty_directive( rnid, segaddr )
    174174
    175 #define     rtems_semaphore_create( name, count, attr, smid ) \
    176            Empty_directive( name, count, attr, smid )
     175#define     rtems_semaphore_create( name, count, attr, priceil, smid ) \
     176           Empty_directive( name, count, attr, priceil, smid )
    177177#define     rtems_semaphore_delete( smid ) \
    178178           Empty_directive( smid )
  • c/src/tests/tmtests/tmoverhd/testtask.c

    r5250ff39 r7f6a24ab  
    511511               128,
    512512               RTEMS_DEFAULT_ATTRIBUTES,
     513               RTEMS_NO_PRIORITY,
    513514               &id
    514515            );
Note: See TracChangeset for help on using the changeset viewer.