Changeset b84f1fdc in rtems


Ignore:
Timestamp:
May 10, 2009, 2:39:46 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
072d2a09
Parents:
1055ce20
Message:

2009-05-10 Joel Sherrill <joel.sherrill@…>

  • sp04/system.h, sp04/task1.c, sp04/tswitch.c, sp07/init.c, sp12/init.c, sp13/putbuff.c, sp13/system.h, sp13/task1.c, sp15/init.c, sp16/system.h, sp19/fptask.c, sp25/system.h, sp26/task1.c, sp27/init.c, sp28/init.c, sp29/init.c, sp31/task1.c, sp33/init.c, sp34/changepri.c, sp35/priinv.c, sp37/init.c, sp38/init.c, sp39/init.c, sp41/init.c, sp42/init.c, sp43/init.c, sp44/init.c, sp45/init.c, sp46/init.c, sp47/init.c, sp48/init.c, spfatal03/testcase.h, spfatal05/testcase.h, spfatal06/testcase.h, spfatal_support/system.h, spobjgetnext/init.c, spsize/getint.c, spsize/size.c: Fix warnings.
Location:
testsuites/sptests
Files:
39 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r1055ce20 rb84f1fdc  
     12009-05-10      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * sp04/system.h, sp04/task1.c, sp04/tswitch.c, sp07/init.c,
     4        sp12/init.c, sp13/putbuff.c, sp13/system.h, sp13/task1.c,
     5        sp15/init.c, sp16/system.h, sp19/fptask.c, sp25/system.h,
     6        sp26/task1.c, sp27/init.c, sp28/init.c, sp29/init.c, sp31/task1.c,
     7        sp33/init.c, sp34/changepri.c, sp35/priinv.c, sp37/init.c,
     8        sp38/init.c, sp39/init.c, sp41/init.c, sp42/init.c, sp43/init.c,
     9        sp44/init.c, sp45/init.c, sp46/init.c, sp47/init.c, sp48/init.c,
     10        spfatal03/testcase.h, spfatal05/testcase.h, spfatal06/testcase.h,
     11        spfatal_support/system.h, spobjgetnext/init.c, spsize/getint.c,
     12        spsize/size.c: Fix warnings.
     13
    1142009-05-07      Joel Sherrill <joel.sherrill@oarcorp.com>
    215
  • testsuites/sptests/sp04/system.h

    r1055ce20 rb84f1fdc  
    44 *  function in the test set.
    55 *
    6  *  COPYRIGHT (c) 1989-1999.
     6 *  COPYRIGHT (c) 1989-2009.
    77 *  On-Line Applications Research Corporation (OAR).
    88 *
     
    7070
    7171struct taskSwitchLog {
    72   int               taskIndex;
     72  unsigned int      taskIndex;
    7373  rtems_time_of_day when;
    7474};
    7575
    7676extern struct taskSwitchLog taskSwitchLog[];
    77 extern int taskSwitchLogIndex;
    78 volatile extern int testsFinished;
     77extern unsigned int taskSwitchLogIndex;
     78extern volatile int testsFinished;
    7979
    8080
  • testsuites/sptests/sp04/task1.c

    r1055ce20 rb84f1fdc  
    99 *  Output parameters:  NONE
    1010 *
    11  *  COPYRIGHT (c) 1989-1999.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    2424showTaskSwitches (void)
    2525{
    26   int i;
    27   int switches = taskSwitchLogIndex;
     26  unsigned int i;
     27  unsigned int switches = taskSwitchLogIndex;
    2828
    2929  for (i = 0 ; i < switches ; i++) {
  • testsuites/sptests/sp04/tswitch.c

    r1055ce20 rb84f1fdc  
    1111 *  Output parameters:  NONE
    1212 *
    13  *  COPYRIGHT (c) 1989-1999.
     13 *  COPYRIGHT (c) 1989-2009.
    1414 *  On-Line Applications Research Corporation (OAR).
    1515 *
     
    2424
    2525struct taskSwitchLog taskSwitchLog[1000];
    26 int taskSwitchLogIndex;
     26unsigned int taskSwitchLogIndex;
    2727volatile int testsFinished;
    2828
  • testsuites/sptests/sp07/init.c

    r1055ce20 rb84f1fdc  
    1212 *  Output parameters:  NONE
    1313 *
    14  *  COPYRIGHT (c) 1989-2008.
     14 *  COPYRIGHT (c) 1989-2009.
    1515 *  On-Line Applications Research Corporation (OAR).
    1616 *
     
    133133  directive_failed( status, "rtems_task_create of TA2" );
    134134
    135 #define TA3_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 4)
     135#define TA3_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 4u)
    136136  status = rtems_task_create(
    137137    Task_name[ 3 ],
     
    144144  directive_failed( status, "rtems_task_create of TA3" );
    145145
    146 #define TA4_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 1)
     146#define TA4_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 1u)
    147147  status = rtems_task_create(
    148148    Task_name[ 4 ],
  • testsuites/sptests/sp12/init.c

    r1055ce20 rb84f1fdc  
    1212 *  Output parameters:  NONE
    1313 *
    14  *  COPYRIGHT (c) 1989-2008.
     14 *  COPYRIGHT (c) 1989-2009.
    1515 *  On-Line Applications Research Corporation (OAR).
    1616 *
     
    8080
    8181  puts( "INIT - Backward priority queue test" );
    82   Priority_test_driver( (RTEMS_MAXIMUM_PRIORITY / 2) + 1 );
     82  Priority_test_driver( (RTEMS_MAXIMUM_PRIORITY / 2u) + 1u );
    8383
    8484rtems_test_pause();
  • testsuites/sptests/sp13/putbuff.c

    r1055ce20 rb84f1fdc  
    99 *  Output parameters:  NONE
    1010 *
    11  *  COPYRIGHT (c) 1989-1999.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    2222
    2323void Put_buffer(
    24   long *buffer
     24  void *buffer
    2525)
    2626{
    2727  int i, j;
    2828  char c;
     29  long *b = buffer;
    2930
    30   for ( i = 0; i < MESSAGE_SIZE / sizeof(long); i++ ) {
     31  for ( i = 0; i < (int) (MESSAGE_SIZE / sizeof(long)); i++ ) {
    3132    for ( j = sizeof(long) - 1; j >= 0; j-- ) {
    32       if ( (c = (buffer[i] >> (8 * j)) & 0xFF) == 0 )
     33      if ( (c = (char)(b[i] >> (8 * j)) & 0xFF) == 0 )
    3334        return;
    3435      printf( "%c", c );
  • testsuites/sptests/sp13/system.h

    r1055ce20 rb84f1fdc  
    44 *  function in the test set.
    55 *
    6  *  COPYRIGHT (c) 1989-20007.
     6 *  COPYRIGHT (c) 1989-2009.
    77 *  On-Line Applications Research Corporation (OAR).
    88 *
     
    2828
    2929void Put_buffer(
    30   long *buffer
     30  void *buffer
    3131);
    3232
  • testsuites/sptests/sp13/task1.c

    r1055ce20 rb84f1fdc  
    88 *  Output parameters:  NONE
    99 *
    10  *  COPYRIGHT (c) 1989-2007.
     10 *  COPYRIGHT (c) 1989-2009.
    1111 *  On-Line Applications Research Corporation (OAR).
    1212 *
     
    2121#include <string.h>             /* for memcmp */
    2222
     23void dope_buffer(
     24  unsigned char *buff,
     25  int            buff_size,
     26  unsigned char  v
     27);
     28
    2329unsigned char big_send_buffer[2048];
    2430unsigned char big_receive_buffer[2048];
     
    2632long buffer[ MESSAGE_SIZE / sizeof(long) ];
    2733
    28 void dope_buffer(unsigned char *buff,
    29                  int   buff_size,
    30                  uint32_t   v)
     34void dope_buffer(
     35  unsigned char *buff,
     36  int            buff_size,
     37  unsigned char  v
     38)
    3139{
    32     int i;
    33     unsigned char ch;
    34 
    35     ch = (' ' + (v % (0x7f - ' ')));
    36 
    37     for (i=0; i<buff_size; i++)
    38     {
    39         *buff++ = ch++;
    40         if (ch >= 0x7f)
    41             ch = ' ';
    42     }
     40  int           i;
     41  unsigned char ch;
     42
     43  ch = (' ' + (v % (0x7f - ' ')));
     44
     45  for (i=0; i<buff_size; i++) {
     46      *buff++ = ch++;
     47      if (ch >= 0x7f)
     48          ch = ' ';
     49  }
    4350}
    4451
  • testsuites/sptests/sp15/init.c

    r1055ce20 rb84f1fdc  
    1212 *  Output parameters:  NONE
    1313 *
    14  *  COPYRIGHT (c) 1989-1999.
     14 *  COPYRIGHT (c) 1989-2009.
    1515 *  On-Line Applications Research Corporation (OAR).
    1616 *
     
    4040  status = rtems_task_create(
    4141    Task_name[ 1 ],
    42     4,
     42    4u,
    4343    RTEMS_MINIMUM_STACK_SIZE,
    4444    RTEMS_DEFAULT_MODES,
  • testsuites/sptests/sp16/system.h

    r1055ce20 rb84f1fdc  
    44 *  function in the test set.
    55 *
    6  *  COPYRIGHT (c) 1989-2008.
     6 *  COPYRIGHT (c) 1989-2009.
    77 *  On-Line Applications Research Corporation (OAR).
    88 *
     
    6969TEST_EXTERN uint8_t   Area_4[8192] CPU_STRUCTURE_ALIGNMENT;
    7070
    71 #define BASE_PRIORITY ((RTEMS_MAXIMUM_PRIORITY / 2) + 1)
     71#define BASE_PRIORITY ((RTEMS_MAXIMUM_PRIORITY / 2u) + 1u)
    7272
    7373#define Put_address_from_area_1( _to_be_printed ) \
  • testsuites/sptests/sp19/fptask.c

    r1055ce20 rb84f1fdc  
    1010 *  Output parameters:  NONE
    1111 *
    12  *  COPYRIGHT (c) 1989-1999.
     12 *  COPYRIGHT (c) 1989-2009.
    1313 *  On-Line Applications Research Corporation (OAR).
    1414 *
     
    5353#endif
    5454
    55   previous_seconds = -1;
     55  previous_seconds = (uint32_t)-1;
    5656
    5757  while( FOREVER ) {
  • testsuites/sptests/sp25/system.h

    r1055ce20 rb84f1fdc  
    44 *  function in the test set.
    55 *
    6  *  COPYRIGHT (c) 1989-2008.
     6 *  COPYRIGHT (c) 1989-2009.
    77 *  On-Line Applications Research Corporation (OAR).
    88 *
     
    4848TEST_EXTERN uint8_t   Area_1[20*1024]  CPU_STRUCTURE_ALIGNMENT;
    4949
    50 #define BASE_PRIORITY ((RTEMS_MAXIMUM_PRIORITY / 2) + 1)
     50#define BASE_PRIORITY ((RTEMS_MAXIMUM_PRIORITY / 2u) + 1u)
    5151
    5252#define Put_address_from_area_1( _to_be_printed ) \
  • testsuites/sptests/sp26/task1.c

    r1055ce20 rb84f1fdc  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    8686
    8787  sc = rtems_task_create (rtems_build_name('S','u','b',c),
    88     RTEMS_MAXIMUM_PRIORITY - 1,
     88    RTEMS_MAXIMUM_PRIORITY - 1u,
    8989    RTEMS_MINIMUM_STACK_SIZE * 4,
    9090    RTEMS_PREEMPT|RTEMS_NO_TIMESLICE|RTEMS_NO_ASR|RTEMS_INTERRUPT_LEVEL(0),
  • testsuites/sptests/sp27/init.c

    r1055ce20 rb84f1fdc  
    11/*
    22 *  Test for rtems_semaphore_flush
     3 *
     4 *  COPYRIGHT (c) 1989-2009.
     5 *  On-Line Applications Research Corporation (OAR).
     6 *
     7 *  The license and distribution terms for this file may be
     8 *  found in the file LICENSE in this distribution or at
     9 *  http://www.rtems.com/license/LICENSE.
    310 *
    411 *  $Id$
     
    815
    916rtems_task Init (rtems_task_argument argument);
     17void starttask(int arg);
     18rtems_task subtask(rtems_task_argument arg);
    1019
    1120#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
     
    6574    rtems_task_suspend (RTEMS_SELF);
    6675  }
    67   sc = rtems_task_start (tid, subtask, arg);
     76  sc = rtems_task_start (tid, subtask, (rtems_task_argument) arg);
    6877  if (sc != RTEMS_SUCCESSFUL) {
    6978        printf ("Can't start task: %s\n", rtems_status_text (sc));
  • testsuites/sptests/sp28/init.c

    r1055ce20 rb84f1fdc  
    11/*
     2 *  COPYRIGHT (c) 1989-2009.
     3 *  On-Line Applications Research Corporation (OAR).
     4 *
    25 *  The license and distribution terms for this file may be
    36 *  found in the file LICENSE in this distribution or at
     
    2831#include <rtems/error.h>
    2932#include <stdio.h>
     33
     34rtems_task subtask(rtems_task_argument arg);
     35rtems_task Task_variable_deleter(rtems_task_argument ignored);
     36void starttask(int arg);
     37void test_errors(void);
     38void test_dtor(void *pointer);
     39void test_multiple_taskvars(void);
     40void test_out_of_memory(void);
     41rtems_task Other_Task(rtems_task_argument ignored);
     42void test_delete_from_other_task(void);
     43void test_delete_as_side_effect(void);
    3044
    3145volatile void *taskvar;
     
    97111
    98112  sc = rtems_task_create(rtems_build_name ('S', 'R', 'V', arg + 'A'),
    99     RTEMS_MAXIMUM_PRIORITY - 1,
     113    RTEMS_MAXIMUM_PRIORITY - 1u,
    100114    RTEMS_MINIMUM_STACK_SIZE,
    101115    RTEMS_PREEMPT|RTEMS_NO_TIMESLICE|RTEMS_NO_ASR|RTEMS_INTERRUPT_LEVEL(0),
     
    281295
    282296  sc = rtems_task_create(rtems_build_name ('O', 'T', 'H', 'R'),
    283     RTEMS_MAXIMUM_PRIORITY - 1,
     297    RTEMS_MAXIMUM_PRIORITY - 1u,
    284298    RTEMS_MINIMUM_STACK_SIZE,
    285299    RTEMS_PREEMPT|RTEMS_NO_TIMESLICE|RTEMS_NO_ASR|RTEMS_INTERRUPT_LEVEL(0),
     
    328342
    329343  sc = rtems_task_create(rtems_build_name ('O', 'T', 'H', 'R'),
    330     RTEMS_MAXIMUM_PRIORITY - 1,
     344    RTEMS_MAXIMUM_PRIORITY - 1u,
    331345    RTEMS_MINIMUM_STACK_SIZE,
    332346    RTEMS_PREEMPT|RTEMS_NO_TIMESLICE|RTEMS_NO_ASR|RTEMS_INTERRUPT_LEVEL(0),
  • testsuites/sptests/sp29/init.c

    r1055ce20 rb84f1fdc  
    11/*
    22 *  Test for rtems_semaphore_flush
     3 *
     4 *  The license and distribution terms for this file may be
     5 *  found in the file LICENSE in this distribution or at
     6 *  http://www.rtems.com/license/LICENSE.
    37 *
    48 *  $Id$
     
    2731
    2832rtems_interval ticksPerSecond;
     33rtems_task subtask(rtems_task_argument arg);
     34void startTask(rtems_id arg);
    2935
    3036rtems_task
     
    5056
    5157        sc = rtems_task_create (rtems_build_name ('S', 'R', 'V', 'A'),
    52                 RTEMS_MAXIMUM_PRIORITY - 1,
     58                RTEMS_MAXIMUM_PRIORITY - 1u,
    5359                RTEMS_MINIMUM_STACK_SIZE * 2,
    5460                RTEMS_PREEMPT|RTEMS_NO_TIMESLICE|RTEMS_NO_ASR|RTEMS_INTERRUPT_LEVEL(0),
     
    173179                sc = rtems_semaphore_obtain (semnorec, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
    174180                rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now);
    175                 diff = now - then;
     181                diff = (int) (now - then);
    176182                then = now;
    177183                if (sc != RTEMS_SUCCESSFUL)
    178184                        printf ("%d: Failed to obtain non-recursive-lock semaphore: %s\n", __LINE__, rtems_status_text (sc));
    179                 else if (diff < (2 * ticksPerSecond))
     185                else if (diff < (int) (2 * ticksPerSecond))
    180186                        printf ("%d: Obtained obtain non-recursive-lock semaphore too quickly -- %d ticks not %d ticks\n", __LINE__, diff, (2 * ticksPerSecond) );
    181187        }
  • testsuites/sptests/sp31/task1.c

    r1055ce20 rb84f1fdc  
    99 *  Output parameters:  NONE
    1010 *
    11  *  COPYRIGHT (c) 1989-2002.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    2020
    2121#include "system.h"
     22
     23rtems_timer_service_routine Should_not_fire_TSR(
     24  rtems_id  ignored_id,
     25  void     *ignored_address
     26);
    2227
    2328volatile int TSR_fired;
  • testsuites/sptests/sp33/init.c

    r1055ce20 rb84f1fdc  
    1 /* spmonotonic -- sanity check the rate monotonic manager
     1/*
     2 *  spmonotonic -- sanity check the rate monotonic manager
    23 *
    3  * license and distribution terms for this file may be found in the file
    4  * LICENSE in this distribution or at
    5  * http://www.rtems.com/license/LICENSE .
     4 *  COPYRIGHT (c) 1989-2009.
     5 *  On-Line Applications Research Corporation (OAR).
     6 *
     7 *  The license and distribution terms for this file may be
     8 *  found in the file LICENSE in this distribution or at
     9 *  http://www.rtems.com/license/LICENSE.
    610 *
    711 * $Id$
     
    2226
    2327#define CONFIGURE_INIT
     28
     29rtems_task Waiter(
     30  rtems_task_argument number
     31);
    2432
    2533rtems_id    Barrier;
  • testsuites/sptests/sp34/changepri.c

    r1055ce20 rb84f1fdc  
    22 *  Test program to demonstrate reordering of threads on thread queues
    33 *  when their priority changes.
     4 *
     5 *  The license and distribution terms for this file may be
     6 *  found in the file LICENSE in this distribution or at
     7 *  http://www.rtems.com/license/LICENSE.
    48 *
    59 *  $Id$
     
    2529
    2630rtems_task BlockingTasks(rtems_task_argument arg);
     31rtems_task Init(rtems_task_argument ignored);
     32const char *CallerName(void);
    2733
    2834/*
    2935 *  CallerName -- print the calling tasks name or id as configured
    3036 */
    31 const char *CallerName()
     37const char *CallerName(void)
    3238{
    3339  static char buffer[32];
     
    111117    status = rtems_task_create(
    112118      rtems_build_name('B','L','K','0'+i),               /* Name */
    113       2+i,                                               /* Priority */
     119      (rtems_task_priority) 2+i,                         /* Priority */
    114120      RTEMS_MINIMUM_STACK_SIZE*2,                        /* Stack size (8KB) */
    115121      RTEMS_DEFAULT_MODES | RTEMS_NO_ASR,                /* Mode */
     
    119125 
    120126    printf( "Blockers[%d] Id = 0x%08x\n", i, Blockers[i] );
    121     status = rtems_task_start(Blockers[i], BlockingTasks, i);
     127    status = rtems_task_start(
     128      Blockers[i],
     129      BlockingTasks,
     130      (rtems_task_argument)i
     131    );
    122132    directive_failed( status, "rtems_task_start (BLKn)" );
    123133  }
     
    129139  for (i = 0; i < NUMBER_OF_BLOCKING_TASKS; i++) {
    130140    rtems_task_priority opri;
    131     rtems_task_priority npri= 2 + NUMBER_OF_BLOCKING_TASKS - i - 1;
     141    rtems_task_priority npri;
     142
     143    npri = (rtems_task_priority) (2 + NUMBER_OF_BLOCKING_TASKS - i - 1);
    132144
    133145    status = rtems_task_set_priority(Blockers[i], npri, &opri);
  • testsuites/sptests/sp35/priinv.c

    r1055ce20 rb84f1fdc  
    88 *  ----------------------------- --- -- -  -   -
    99 *
     10 *  The license and distribution terms for this file may be
     11 *  found in the file LICENSE in this distribution or at
     12 *  http://www.rtems.com/license/LICENSE.
     13 *
    1014 *  $Id$
    1115 */
     
    5761#endif
    5862
     63const char *CallerName(void);
     64
    5965/* Task entry point prototypes */
     66rtems_task Init(rtems_task_argument ignored);
    6067rtems_task Medium_Exec(rtems_task_argument TaskArg);
    6168rtems_task Low_Exec(rtems_task_argument TaskArg);
     
    7077void AccessRemoteHw(void);
    7178
    72 const char *CallerName()
     79const char *CallerName(void)
    7380{
    7481  static char buffer[32];
     
    411418  /* -- Medium-prio Test Tasks --- */
    412419  for (i = 0; i < NofMediumTask_C; i++) {
    413 #define MEDIUM_PRIORITY ((RTEMS_MAXIMUM_PRIORITY / 2) + 1)
     420#define MEDIUM_PRIORITY ((RTEMS_MAXIMUM_PRIORITY / 2u) + 1u)
    414421    status = rtems_task_create(
    415422      rtems_build_name('M','E','D','0'+i),               /* Name */
     
    422429
    423430    printf( "TaMedium[%d] Id = 0x%08x\n", i, TaMedium[i] );
    424     status = rtems_task_start(TaMedium[i], Medium_Exec, i);
     431    status = rtems_task_start(
     432      TaMedium[i],
     433      Medium_Exec,
     434      (rtems_task_argument) i
     435    );
    425436    directive_failed( status, "rtems_task_start (MEDn)" );
    426437  }
    427438
    428439  /* -- High-prio Test Task --- */
    429 #define HIGH_PRIORITY ((RTEMS_MAXIMUM_PRIORITY / 2))
     440#define HIGH_PRIORITY ((RTEMS_MAXIMUM_PRIORITY / 2u))
    430441  status = rtems_task_create(
    431442    rtems_build_name('H','I','G','H'),                 /* Name */
     
    442453
    443454  /* -- Low-prio Test Task --- */
    444 #define LOW_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 1)
     455#define LOW_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 1u)
    445456  status = rtems_task_create(
    446457    rtems_build_name('L','O','W',' '),                 /* Name */
     
    457468
    458469  /* -- HW Simulator Task --- */
    459 #define HWTASK_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 2)
     470#define HWTASK_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 2u)
    460471  status = rtems_task_create(
    461472    rtems_build_name('H','W','S','M'),                 /* Name */
  • testsuites/sptests/sp37/init.c

    r1055ce20 rb84f1fdc  
    33 *  Clock Tick from task level
    44 *
    5  *  COPYRIGHT (c) 1989-2007.
     5 *  COPYRIGHT (c) 1989-2009.
    66 *  On-Line Applications Research Corporation (OAR).
    77 *
     
    1717#include "system.h"
    1818
     19/* prototypes */
     20void test_interrupt_inline(void);
     21void check_isr_in_progress_inline(void);
     22rtems_task blocked_task(rtems_task_argument argument);
     23rtems_timer_service_routine test_unblock_task(
     24  rtems_id  timer,
     25  void     *arg
     26);
     27rtems_timer_service_routine test_unblock_task(
     28  rtems_id  timer,
     29  void     *arg
     30);
     31void check_isr_worked(
     32  char *s,
     33  int   result
     34);
     35rtems_timer_service_routine test_isr_in_progress(
     36  rtems_id  timer,
     37  void     *arg
     38);
     39
     40/* test bodies */
    1941void test_interrupt_inline(void)
    2042{
  • testsuites/sptests/sp38/init.c

    r1055ce20 rb84f1fdc  
    22 *  Classic API Signal to Task from ISR
    33 *
    4  *  COPYRIGHT (c) 1989-2007.
     4 *  COPYRIGHT (c) 1989-2009.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    1919
    2020rtems_id main_task;
     21void signal_handler(rtems_signal_set signals);
     22rtems_timer_service_routine test_signal_from_isr(
     23  rtems_id  timer,
     24  void     *arg
     25);
    2126
    2227void signal_handler(
  • testsuites/sptests/sp39/init.c

    r1055ce20 rb84f1fdc  
    22 *  Classic API Signal to Task from ISR
    33 *
    4  *  COPYRIGHT (c) 1989-2008.
     4 *  COPYRIGHT (c) 1989-2009.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17rtems_timer_service_routine test_event_from_isr(
     18  rtems_id  timer,
     19  void     *arg
     20);
     21rtems_timer_service_routine test_event_with_timeout_from_isr(
     22  rtems_id  timer,
     23  void     *arg
     24);
    1625
    1726volatile bool case_hit;
  • testsuites/sptests/sp41/init.c

    r1055ce20 rb84f1fdc  
    22 *  Classic API Signal to Task from ISR
    33 *
    4  *  COPYRIGHT (c) 1989-2008.
     4 *  COPYRIGHT (c) 1989-2009.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    2121rtems_id Semaphore;
    2222
     23/* prototypes */
     24Thread_blocking_operation_States getState(void);
     25rtems_timer_service_routine test_release_from_isr(
     26  rtems_id  timer,
     27  void     *arg
     28);
     29rtems_timer_service_routine test_release_with_timeout_from_isr(
     30  rtems_id  timer,
     31  void     *arg
     32);
     33
    2334Thread_blocking_operation_States getState(void)
    2435{
  • testsuites/sptests/sp42/init.c

    r1055ce20 rb84f1fdc  
    22 *  Exercise thread queue enqueue and dequeue priority
    33 *
    4  *  COPYRIGHT (c) 1989-2008.
     4 *  COPYRIGHT (c) 1989-2009.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    2020
    2121#define MAX_TASKS 20
     22
     23rtems_task Init(rtems_task_argument argument);
     24rtems_task Locker_task(rtems_task_argument unused);
     25void do_test(
     26  rtems_attribute attr,
     27  bool            extract  /* TRUE if extract, not release */
     28);
    2229
    2330/*
     
    109116    directive_failed( status, "rtems_task_create" );
    110117
    111     status = rtems_task_start( Task_id[ i ], Locker_task, i );
     118    status = rtems_task_start(
     119      Task_id[ i ], Locker_task, (rtems_task_argument)i );
    112120    directive_failed( status, "rtems_task_start" );
    113121
  • testsuites/sptests/sp43/init.c

    r1055ce20 rb84f1fdc  
    22 *  Exercise Object Manager Services
    33 *
    4  *  COPYRIGHT (c) 1989-2008.
     4 *  COPYRIGHT (c) 1989-2009.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    2323#undef rtems_object_id_get_index
    2424#undef rtems_object_id_get_node
     25
     26void print_class_info(
     27  uint32_t                            api,
     28  uint32_t                            class,
     29  rtems_object_api_class_information *info
     30);
     31void change_name(
     32  rtems_id    id,
     33  const char *newName,
     34  bool        printable
     35);
    2536
    2637rtems_id         main_task;
  • testsuites/sptests/sp44/init.c

    r1055ce20 rb84f1fdc  
    3232#include <stdio.h>
    3333#include <stdlib.h>
     34
     35rtems_task Init(rtems_task_argument ignored);
     36rtems_task TaskAB_entry(rtems_task_argument me);
    3437
    3538/*** Task priorities ***/
  • testsuites/sptests/sp45/init.c

    r1055ce20 rb84f1fdc  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1111
    1212#include <tmacros.h>
     13
     14rtems_task Init(
     15  rtems_task_argument argument
     16);
     17rtems_timer_service_routine Malloc_From_TSR(
     18  rtems_id  ignored_id,
     19  void     *ignored_address
     20);
    1321
    1422rtems_id   Timer_id[ 3 ];    /* array of timer ids */
  • testsuites/sptests/sp46/init.c

    r1055ce20 rb84f1fdc  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1212#include <tmacros.h>
    1313#include <rtems/cpuuse.h>
     14
     15rtems_task Periodic_Task(
     16  rtems_task_argument argument
     17);
     18rtems_task Init(
     19  rtems_task_argument argument
     20);
    1421
    1522volatile int partial_loop = 0;
  • testsuites/sptests/sp47/init.c

    r1055ce20 rb84f1fdc  
    66
    77#include <tmacros.h>
     8
     9rtems_task test_asr(rtems_task_argument unused);
     10rtems_task Init(rtems_task_argument ignored);
    811
    912rtems_task test_asr(rtems_task_argument unused)
  • testsuites/sptests/sp48/init.c

    r1055ce20 rb84f1fdc  
    11/*
    22 *  Verify creation of semaphores with unlimited attribute works.
     3 *
     4 *  COPYRIGHT (c) 1989-2009.
     5 *  On-Line Applications Research Corporation (OAR).
     6 *
     7 *  The license and distribution terms for this file may be
     8 *  found in the file LICENSE in this distribution or at
     9 *  http://www.rtems.com/license/LICENSE.
    310 *
    411 *  $Id$
     
    714#include <tmacros.h>
    815#include <rtems/libcsupport.h>
     16
     17rtems_task Init(rtems_task_argument ignored);
    918
    1019#define MAX 5000
  • testsuites/sptests/spfatal03/testcase.h

    r1055ce20 rb84f1fdc  
    11/*
    2  * Classic API Init task create failure
     2 *  Classic API Init task create failure
     3 *
     4 *  COPYRIGHT (c) 1989-2009.
     5 *  On-Line Applications Research Corporation (OAR).
     6 *
     7 *  The license and distribution terms for this file may be
     8 *  found in the file LICENSE in this distribution or at
     9 *  http://www.rtems.com/license/LICENSE.
    310 *
    411 *  $Id$
     
    3542rtems_name Mutex_name[1];
    3643
    37 void force_error()
     44void force_error(void)
    3845{
    39   ISR_Level level;
    4046  rtems_status_code status;
    41 
    4247
    4348  Mutex_name[0] = rtems_build_name( 'S','0',' ',' ');
     
    6166
    6267  _Thread_Enable_dispatch();
    63   _ISR_Enable( level );
    6468  directive_failed( status, "rtems_semaphore_obtain" );
    6569 
  • testsuites/sptests/spfatal05/testcase.h

    r1055ce20 rb84f1fdc  
    11/*
    2  * Classic API Init task create failure
     2 *  Classic API Init task create failure
     3 *
     4 *  COPYRIGHT (c) 1989-2009.
     5 *  On-Line Applications Research Corporation (OAR).
     6 *
     7 *  The license and distribution terms for this file may be
     8 *  found in the file LICENSE in this distribution or at
     9 *  http://www.rtems.com/license/LICENSE.
    310 *
    411 *  $Id$
     
    3239#define FATAL_ERROR_EXPECTED_ERROR       INTERNAL_ERROR_THREAD_EXITTED
    3340
     41rtems_task EmptyTask( rtems_task_argument unused );
     42
    3443rtems_task EmptyTask(
    3544  rtems_task_argument unused
  • testsuites/sptests/spfatal06/testcase.h

    r1055ce20 rb84f1fdc  
    11/*
    2  * Classic API Init task create failure
     2 *  Classic API Init task create failure
    33 *
    44 *  COPYRIGHT (c) 1989-2008.
     
    3737#define FATAL_ERROR_EXPECTED_ERROR       INTERNAL_ERROR_BAD_STACK_HOOK
    3838
     39void *New_stack_allocate_hook(uint32_t unused);
     40
    3941void *New_stack_allocate_hook(uint32_t unused)
    4042{
  • testsuites/sptests/spfatal_support/system.h

    r1055ce20 rb84f1fdc  
    44 *  function in the test set.
    55 *
    6  *  COPYRIGHT (c) 1989-1999.
     6 *  COPYRIGHT (c) 1989-2009.
    77 *  On-Line Applications Research Corporation (OAR).
    88 *
     
    3333);
    3434
    35 /* need prototypes */
     35void Put_Error(
     36  uint32_t source,
     37  uint32_t error
     38);
     39
     40void Put_Source(
     41  uint32_t source
     42);
     43
     44void force_error(void);
     45
     46/* need some prototypes for test cases */
    3647
    3748#include "testcase.h"
  • testsuites/sptests/spobjgetnext/init.c

    r1055ce20 rb84f1fdc  
    1616#include "system.h"
    1717
     18/* prototypes */
     19int scan_objects(
     20  Objects_Information *information,
     21  Objects_Id           start
     22);
     23
    1824#define MAX_SCAN 10
     25
    1926int scan_objects(
    2027  Objects_Information *information,
  • testsuites/sptests/spsize/getint.c

    r1055ce20 rb84f1fdc  
    99 *    returns - number read
    1010 *
    11  *  COPYRIGHT (c) 1989-1999.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    2323#include <stdlib.h>
    2424
     25int getint( void );
     26
    2527int getint( void )
    2628{
  • testsuites/sptests/spsize/size.c

    r1055ce20 rb84f1fdc  
    1 /*  main
    2  *
     1/*
    32 *  This program is run to determine the data space and work space
    43 *  requirements of the current version of RTEMS.
    54 *
    6  *  COPYRIGHT (c) 1989-2008.
     5 *  COPYRIGHT (c) 1989-2009.
    76 *  On-Line Applications Research Corporation (OAR).
    87 *
     
    5352/* external function prototypes */
    5453int getint( void );
     54void size_rtems(int mode);
     55void help_size(void);
     56void print_formula(void);
     57
    5558
    5659/* These are always defined by the executive.
     
    134137
    135138uint32_t   sys_req;
    136 
    137 void help_size();
    138 void print_formula();
    139139
    140140void size_rtems(
Note: See TracChangeset for help on using the changeset viewer.