Changeset 8211b9f in rtems


Ignore:
Timestamp:
Dec 30, 2013, 3:48:08 PM (6 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
19530271
Parents:
dfcb3ac
git-author:
Joel Sherrill <joel.sherrill@…> (12/30/13 15:48:08)
git-committer:
Joel Sherrill <joel.sherrill@…> (12/30/13 15:53:31)
Message:

spregion_err01: Remove unneeded fluff copied from sp09

The goal is to shrink the individual tests to have no unneeded
resources and to follow the structure of a normal test.

Location:
testsuites/sptests/spregion_err01
Files:
1 added
8 deleted
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/spregion_err01/Makefile.am

    rdfcb3ac r8211b9f  
    11
    2 rtems_tests_PROGRAMS = sp09
    3 sp09_SOURCES = init.c delay.c isr.c screen12.c \
    4     task1.c task2.c task3.c task4.c \
    5     system.h
     2rtems_tests_PROGRAMS = spregion_err01
     3spregion_err01_SOURCES = init.c system.h
    64
    7 dist_rtems_tests_DATA = sp09.scn
    8 dist_rtems_tests_DATA += sp09.doc
     5dist_rtems_tests_DATA = spregion_err01.scn
     6dist_rtems_tests_DATA += spregion_err01.doc
    97
    108include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    1513AM_CPPFLAGS += -I$(top_srcdir)/../support/include
    1614
    17 LINK_OBJS = $(sp09_OBJECTS)
    18 LINK_LIBS = $(sp09_LDLIBS)
     15LINK_OBJS = $(spregion_err01_OBJECTS)
     16LINK_LIBS = $(spregion_err01_LDLIBS)
    1917
    20 sp09$(EXEEXT): $(sp09_OBJECTS) $(sp09_DEPENDENCIES)
    21         @rm -f sp09$(EXEEXT)
     18spregion_err01$(EXEEXT): $(spregion_err01_OBJECTS) $(spregion_err01_DEPENDENCIES)
     19        @rm -f spregion_err01$(EXEEXT)
    2220        $(make-exe)
    2321
  • testsuites/sptests/spregion_err01/init.c

    rdfcb3ac r8211b9f  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2013.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include "system.h"
    1616
     17rtems_name Region_name[ 2 ];    /* array of region names */
     18rtems_id   Region_id[ 2 ];      /* array of region ids */
     19
     20uint32_t   Region_good_area[4096] CPU_STRUCTURE_ALIGNMENT;
     21#define Region_bad_area    (void *) 0x00000005
     22#define REGION_START_OFFSET 1024
     23#define REGION_LENGTH       512
     24
     25/* to avoid warnings */
     26void region_error_tests(void);
     27
     28void region_error_tests(void)
     29{
     30  void                   *segment_address_1;
     31  void                   *segment_address_2;
     32  void                   *segment_address_3;
     33  uintptr_t               segment_size;
     34  rtems_status_code       status;
     35  Heap_Information_block  the_info;
     36  rtems_id                junk_id;
     37
     38  Region_name[ 1 ]     =  rtems_build_name( 'R', 'N', '1', ' ' );
     39
     40  /* Check invalid name error case */
     41  status = rtems_region_create(
     42    0,
     43    Region_good_area,
     44    0x40,
     45    32,
     46    RTEMS_DEFAULT_ATTRIBUTES,
     47    &junk_id
     48  );
     49  fatal_directive_status(
     50    status,
     51    RTEMS_INVALID_NAME,
     52    "rtems_region_create with illegal name"
     53  );
     54  puts( "TA1 - rtems_region_create - RTEMS_INVALID_NAME" );
     55
     56  /* Check NULL starting address error case */
     57  status = rtems_region_create(
     58    Region_name[ 1 ],
     59    NULL,
     60    0x40,
     61    32,
     62    RTEMS_DEFAULT_ATTRIBUTES,
     63    &junk_id
     64  );
     65  fatal_directive_status(
     66    status,
     67    RTEMS_INVALID_ADDRESS,
     68    "rtems_region_create with NULL address"
     69  );
     70  puts( "TA1 - rtems_region_create - RTEMS_INVALID_ADDRESS" );
     71
     72  /* Invalid size */
     73  status = rtems_region_create(
     74    Region_name[ 1 ],
     75    Region_good_area,
     76    0,
     77    0,
     78    RTEMS_DEFAULT_ATTRIBUTES,
     79    &junk_id
     80  );
     81  fatal_directive_status(
     82    status,
     83    RTEMS_INVALID_SIZE,
     84    "rtems_region_create with illegal size"
     85  );
     86  puts( "TA1 - rtems_region_create - RTEMS_INVALID_SIZE" );
     87
     88  /* Check NULL id error case */
     89  status = rtems_region_create(
     90    Region_name[ 1 ],
     91    Region_good_area,
     92    REGION_LENGTH,
     93    0x40,
     94    RTEMS_DEFAULT_ATTRIBUTES,
     95    NULL
     96  );
     97  fatal_directive_status(
     98    status,
     99    RTEMS_INVALID_ADDRESS,
     100    "rtems_region_create with NULL id"
     101  );
     102  puts( "TA1 - rtems_region_create - RTEMS_INVALID_ADDRESS" );
     103
     104  status = rtems_region_create(
     105    Region_name[ 1 ],
     106    &Region_good_area[ REGION_START_OFFSET ],
     107    REGION_LENGTH,
     108    0x40,
     109    RTEMS_DEFAULT_ATTRIBUTES,
     110    &Region_id[ 1 ]
     111  );
     112  directive_failed( status, "rtems_region_create" );
     113  puts( "TA1 - rtems_region_create - RTEMS_SUCCESSFUL" );
     114
     115  /* extend NULL address */
     116  status = rtems_region_extend(
     117    Region_id[ 1 ],
     118    NULL,
     119    REGION_LENGTH - 1
     120  );
     121  fatal_directive_status(
     122    status,
     123    RTEMS_INVALID_ADDRESS,
     124    "rtems_region_extend with NULL"
     125  );
     126  puts( "TA1 - rtems_region_extend - NULL address - RTEMS_INVALID_ADDRESS" );
     127
     128  /* extend within heap */
     129  status = rtems_region_extend(
     130    Region_id[ 1 ],
     131    &Region_good_area[ REGION_START_OFFSET ],
     132    REGION_LENGTH - 1
     133  );
     134  fatal_directive_status(
     135    status,
     136    RTEMS_INVALID_ADDRESS,
     137    "rtems_region_extend with address in heap"
     138  );
     139  puts( "TA1 - rtems_region_extend - address within - RTEMS_INVALID_ADDRESS" );
     140
     141  status = rtems_region_create(
     142    Region_name[ 1 ],
     143    Region_good_area,
     144    REGION_LENGTH,
     145    0x40,
     146    RTEMS_DEFAULT_ATTRIBUTES,
     147    &junk_id
     148  );
     149  fatal_directive_status(
     150    status,
     151    RTEMS_TOO_MANY,
     152    "rtems_region_create of too many"
     153  );
     154  puts( "TA1 - rtems_region_create - RTEMS_TOO_MANY" );
     155
     156  status = rtems_region_delete( 100 );
     157  fatal_directive_status(
     158    status,
     159    RTEMS_INVALID_ID,
     160    "rtems_region_delete with illegal id"
     161  );
     162  puts( "TA1 - rtems_region_delete - unknown RTEMS_INVALID_ID" );
     163
     164  status = rtems_region_delete( rtems_build_id( 1, 1, 1, 256 ) );
     165  fatal_directive_status(
     166    status,
     167    RTEMS_INVALID_ID,
     168    "rtems_region_delete with illegal id"
     169  );
     170  puts( "TA1 - rtems_region_delete - local RTEMS_INVALID_ID" );
     171
     172  status = rtems_region_ident( 0, &junk_id );
     173  fatal_directive_status(
     174    status,
     175    RTEMS_INVALID_NAME,
     176    "rtems_region_ident with illegal name"
     177  );
     178  puts( "TA1 - rtems_region_ident - RTEMS_INVALID_NAME" );
     179
     180  /* Check get_information errors */
     181  status = rtems_region_get_information( Region_id[ 1 ], NULL );
     182  fatal_directive_status(
     183    status,
     184    RTEMS_INVALID_ADDRESS,
     185    "rtems_region_get_information with NULL information"
     186  );
     187  puts( "TA1 - rtems_region_get_information - RTEMS_INVALID_ADDRESS" );
     188
     189  status = rtems_region_get_information( 100, &the_info );
     190  fatal_directive_status(
     191    status,
     192    RTEMS_INVALID_ID,
     193    "rtems_region_get_information with illegal id"
     194  );
     195  puts( "TA1 - rtems_region_get_information - unknown RTEMS_INVALID_ID" );
     196
     197  /* Check get_free_information errors */
     198  status = rtems_region_get_free_information( Region_id[ 1 ], NULL );
     199  fatal_directive_status(
     200    status,
     201    RTEMS_INVALID_ADDRESS,
     202    "rtems_region_get_free_information with NULL information"
     203  );
     204  puts( "TA1 - rtems_region_get_free_information - RTEMS_INVALID_ADDRESS" );
     205
     206  status = rtems_region_get_free_information( 100, &the_info );
     207  fatal_directive_status(
     208    status,
     209    RTEMS_INVALID_ID,
     210    "rtems_region_get_free_information with illegal id"
     211  );
     212  puts( "TA1 - rtems_region_get_free_information - unknown RTEMS_INVALID_ID" );
     213
     214  /* get segment illegal id */
     215  status = rtems_region_get_segment(
     216    100,
     217    0x40,
     218    RTEMS_DEFAULT_OPTIONS,
     219    RTEMS_NO_TIMEOUT,
     220    &segment_address_1
     221  );
     222  fatal_directive_status(
     223    status,
     224    RTEMS_INVALID_ID,
     225    "rtems_region_get_segment with illegal id"
     226  );
     227  puts( "TA1 - rtems_region_get_segment - RTEMS_INVALID_ID" );
     228
     229  /* get_segment with NULL param */
     230  status = rtems_region_get_segment(
     231     Region_id[ 1 ],
     232     2,
     233     RTEMS_DEFAULT_OPTIONS,
     234     RTEMS_NO_TIMEOUT,
     235     NULL
     236  );
     237  fatal_directive_status(
     238    status,
     239    RTEMS_INVALID_ADDRESS,
     240    "rtems_region_get_segment with NULL param"
     241  );
     242  puts( "TA1 - rtems_region_get_segment - RTEMS_INVALID_ADDRESS" );
     243
     244  /* get_segment with illegal 0 size */
     245  status = rtems_region_get_segment(
     246     Region_id[ 1 ],
     247     0,
     248     RTEMS_DEFAULT_OPTIONS,
     249     RTEMS_NO_TIMEOUT,
     250     &segment_address_1
     251  );
     252  fatal_directive_status(
     253    status,
     254    RTEMS_INVALID_SIZE,
     255    "rtems_region_get_segment with 0 size"
     256  );
     257  puts( "TA1 - rtems_region_get_segment - 0 size - RTEMS_INVALID_SIZE" );
     258
     259  /* get_segment with illegal big size */
     260  status = rtems_region_get_segment(
     261     Region_id[ 1 ],
     262     sizeof( Region_good_area ) * 2,
     263     RTEMS_DEFAULT_OPTIONS,
     264     RTEMS_NO_TIMEOUT,
     265     &segment_address_1
     266  );
     267  fatal_directive_status(
     268    status,
     269    RTEMS_INVALID_SIZE,
     270    "rtems_region_get_segment with big size"
     271  );
     272  puts( "TA1 - rtems_region_get_segment - too big - RTEMS_INVALID_SIZE" );
     273
     274  status = rtems_region_get_segment(
     275     Region_id[ 1 ],
     276     REGION_LENGTH / 2,
     277     RTEMS_DEFAULT_OPTIONS,
     278     RTEMS_NO_TIMEOUT,
     279     &segment_address_1
     280  );
     281  directive_failed( status, "rtems_region_get_segment" );
     282  puts( "TA1 - rtems_region_get_segment - RTEMS_SUCCESSFUL" );
     283
     284  status = rtems_region_get_segment(
     285     Region_id[ 1 ],
     286     REGION_LENGTH / 2,
     287     RTEMS_NO_WAIT,
     288     RTEMS_NO_TIMEOUT,
     289     &segment_address_2
     290  );
     291  fatal_directive_status(
     292    status,
     293    RTEMS_UNSATISFIED,
     294    "rtems_region_get_segment unsatisfied"
     295  );
     296  puts( "TA1 - rtems_region_get_segment - RTEMS_UNSATISFIED" );
     297
     298  puts( "TA1 - rtems_region_get_segment - timeout in 3 seconds" );
     299  status = rtems_region_get_segment(
     300    Region_id[ 1 ],
     301    REGION_LENGTH / 2,
     302    RTEMS_DEFAULT_OPTIONS,
     303    3 * rtems_clock_get_ticks_per_second(),
     304    &segment_address_3
     305  );
     306  fatal_directive_status(
     307    status,
     308    RTEMS_TIMEOUT,
     309    "rtems_region_get_segment timeout"
     310  );
     311  puts( "TA1 - rtems_region_get_segment - woke up with RTEMS_TIMEOUT" );
     312
     313  /* Check get_segment_size errors */
     314  status = rtems_region_get_segment_size( Region_id[ 1 ], NULL, &segment_size );
     315  fatal_directive_status(
     316    status,
     317    RTEMS_INVALID_ADDRESS,
     318    "rtems_region_get_segment_size with NULL segment"
     319  );
     320  puts( "TA1 - rtems_region_get_segment_size - RTEMS_INVALID_ADDRESS" );
     321
     322  status = rtems_region_get_segment_size(
     323    Region_id[ 1 ], segment_address_1, NULL
     324  );
     325  fatal_directive_status(
     326    status,
     327    RTEMS_INVALID_ADDRESS,
     328    "rtems_region_get_segment_size with NULL size"
     329  );
     330  puts( "TA1 - rtems_region_get_segment_size - RTEMS_INVALID_ADDRESS" );
     331
     332  status = rtems_region_get_segment_size(
     333    100, segment_address_1, &segment_size
     334  );
     335  fatal_directive_status(
     336    status,
     337    RTEMS_INVALID_ID,
     338    "rtems_region_get_segment_size with illegal id"
     339  );
     340  puts( "TA1 - rtems_region_get_segment_size - unknown RTEMS_INVALID_ID" );
     341
     342  status = rtems_region_delete( Region_id[ 1 ] );
     343  fatal_directive_status(
     344    status,
     345    RTEMS_RESOURCE_IN_USE,
     346    "rtems_region_delete with buffers in use"
     347  );
     348  puts( "TA1 - rtems_region_delete - RTEMS_RESOURCE_IN_USE" );
     349
     350  /* Check resize_segment errors */
     351  status = rtems_region_resize_segment(
     352    Region_id[ 1 ], segment_address_3, 256, NULL
     353  );
     354  fatal_directive_status(
     355    status,
     356    RTEMS_INVALID_ADDRESS,
     357    "rtems_region_resize_segment with NULL old size"
     358  );
     359  puts( "TA1 - rtems_region_resize_segment - RTEMS_INVALID_ADDRESS" );
     360
     361  status = rtems_region_resize_segment(
     362    Region_id[ 1 ], NULL, 256, &segment_size
     363  );
     364  fatal_directive_status(
     365    status,
     366    RTEMS_INVALID_ADDRESS,
     367    "rtems_region_resize_segment with NULL segment"
     368  );
     369  puts( "TA1 - rtems_region_resize_segment - RTEMS_INVALID_ADDRESS" );
     370
     371  status = rtems_region_resize_segment(
     372    100, segment_address_3, 256, &segment_size
     373  );
     374  fatal_directive_status(
     375    status,
     376    RTEMS_INVALID_ID,
     377    "rtems_region_resize_segment with illegal id"
     378  );
     379  puts( "TA1 - rtems_region_resize_segment - RTEMS_INVALID_ID" );
     380
     381  /* Check return_segment errors */
     382  status = rtems_region_return_segment( 100, segment_address_1 );
     383  fatal_directive_status(
     384    status,
     385    RTEMS_INVALID_ID,
     386    "rtems_region_return_segment with illegal id"
     387  );
     388  puts( "TA1 - rtems_region_return_segment - RTEMS_INVALID_ID" );
     389
     390  status = rtems_region_return_segment( Region_id[ 1 ], Region_good_area );
     391  fatal_directive_status(
     392    status,
     393    RTEMS_INVALID_ADDRESS,
     394    "rtems_region_return_segment with illegal segment"
     395  );
     396  puts( "TA1 - rtems_region_return_segment - RTEMS_INVALID_ADDRESS" );
     397
     398/*
     399 *  The following generate internal heap errors.  Thus this code
     400 *  is subject to change if the heap code changes.
     401 */
     402
     403  puts( "TA1 - rtems_debug_disable - RTEMS_DEBUG_REGION" );
     404  rtems_debug_disable( RTEMS_DEBUG_REGION );
     405
     406  puts( "TA1 - rtems_debug_enable - RTEMS_DEBUG_REGION" );
     407  rtems_debug_enable( RTEMS_DEBUG_REGION );
     408
     409  status = rtems_region_extend(
     410    100,
     411    Region_good_area,
     412    128
     413  );
     414  fatal_directive_status(
     415    status,
     416    RTEMS_INVALID_ID,
     417    "rtems_region_extend with illegal id"
     418  );
     419  puts( "TA1 - rtems_region_extend - RTEMS_INVALID_ID" );
     420
     421  status = rtems_region_extend(
     422    Region_id[ 1 ],
     423    &Region_good_area[ REGION_START_OFFSET + 16 ],
     424    128
     425  );
     426  fatal_directive_status(
     427    status,
     428    RTEMS_INVALID_ADDRESS,
     429    "rtems_region_extend with illegal starting address"
     430  );
     431  puts( "TA1 - rtems_region_extend - within heap - RTEMS_INVALID_ADDRESS" );
     432}
     433
    17434rtems_task Init(
    18435  rtems_task_argument argument
    19436)
    20437{
    21   rtems_status_code status;
    22 
    23   puts( "\n\n*** TEST 9 ***" );
    24 
    25   Task_name[ 1 ]       =  rtems_build_name( 'T', 'A', '1', ' ' );
    26   Task_name[ 2 ]       =  rtems_build_name( 'T', 'A', '2', ' ' );
    27   Task_name[ 3 ]       =  rtems_build_name( 'T', 'A', '3', ' ' );
    28   Task_name[ 4 ]       =  rtems_build_name( 'T', 'A', '4', ' ' );
    29   Task_name[ 5 ]       =  rtems_build_name( 'T', 'A', '5', ' ' );
    30   Task_name[ 6 ]       =  rtems_build_name( 'T', 'A', '6', ' ' );
    31   Task_name[ 7 ]       =  rtems_build_name( 'T', 'A', '7', ' ' );
    32   Task_name[ 8 ]       =  rtems_build_name( 'T', 'A', '8', ' ' );
    33   Task_name[ 9 ]       =  rtems_build_name( 'T', 'A', '9', ' ' );
    34   Task_name[ 10 ]      =  rtems_build_name( 'T', 'A', 'A', ' ' );
    35 
    36   Semaphore_name[ 1 ]  =  rtems_build_name( 'S', 'M', '1', ' ' );
    37   Semaphore_name[ 2 ]  =  rtems_build_name( 'S', 'M', '2', ' ' );
    38   Semaphore_name[ 3 ]  =  rtems_build_name( 'S', 'M', '3', ' ' );
    39 
    40   Queue_name[ 1 ]      =  rtems_build_name( 'M', 'Q', '1', ' ' );
    41   Queue_name[ 2 ]      =  rtems_build_name( 'M', 'Q', '2', ' ' );
    42 
    43   Partition_name[ 1 ]  =  rtems_build_name( 'P', 'T', '1', ' ' );
    44 
    45   Region_name[ 1 ]     =  rtems_build_name( 'R', 'N', '1', ' ' );
    46 
    47   Port_name[ 1 ]       =  rtems_build_name( 'D', 'P', '1', ' ' );
    48 
    49   Period_name[ 1 ]     =  rtems_build_name( 'T', 'M', '1', ' ' );
    50 
    51   /* priority of 0 error */
    52   status = rtems_task_create(
    53      Task_name[1],
    54      0,
    55      RTEMS_MINIMUM_STACK_SIZE,
    56      RTEMS_DEFAULT_MODES,
    57      RTEMS_DEFAULT_ATTRIBUTES,
    58      &Task_id[ 1 ]
    59   );
    60   fatal_directive_status(
    61     status,
    62     RTEMS_INVALID_PRIORITY,
    63     "rtems_task_create with illegal priority"
    64   );
    65   puts( "INIT - rtems_task_create - priority of 0 - RTEMS_INVALID_PRIORITY" );
    66 
    67   /* priority > 255 error */
    68   status = rtems_task_create(
    69      Task_name[1],
    70      257,
    71      RTEMS_MINIMUM_STACK_SIZE,
    72      RTEMS_DEFAULT_MODES,
    73      RTEMS_DEFAULT_ATTRIBUTES,
    74      &Task_id[ 1 ]
    75   );
    76   fatal_directive_status(
    77     status,
    78     RTEMS_INVALID_PRIORITY,
    79     "rtems_task_create with illegal priority"
    80   );
    81   puts(
    82     "INIT - rtems_task_create - priority too high - RTEMS_INVALID_PRIORITY"
    83   );
    84 
    85   status = rtems_task_create(
    86     Task_name[ 1 ],
    87     4,
    88     RTEMS_MINIMUM_STACK_SIZE * 3,
    89     RTEMS_DEFAULT_MODES,
    90     RTEMS_DEFAULT_ATTRIBUTES,
    91     &Task_id[ 1 ]
    92   );
    93   directive_failed( status, "rtems_task_create of TA1" );
    94 
    95   status = rtems_task_restart( Task_id[ 1 ], 0 );
    96   fatal_directive_status(
    97     status,
    98     RTEMS_INCORRECT_STATE,
    99     "rtems_task_restart of DORMANT task"
    100   );
    101   puts( "INIT - rtems_task_restart - RTEMS_INCORRECT_STATE" );
    102 
    103   status = rtems_task_start( Task_id[ 1 ], Task_1, 0 );
    104   directive_failed( status, "rtems_task_start of TA1" );
    105 
    106   status = rtems_task_delete( RTEMS_SELF );
    107   directive_failed( status, "rtems_task_delete of RTEMS_SELF" );
     438  puts( "\n\n*** TEST SPREGION_ERR01 ***" );
     439
     440  region_error_tests();
     441
     442  puts( "*** END OF TEST SPREGION_ERR01 ***" );
     443  rtems_test_exit( 0 );
    108444}
  • testsuites/sptests/spregion_err01/system.h

    rdfcb3ac r8211b9f  
    1 /*  system.h
    2  *
    3  *  This include file contains information that is included in every
    4  *  function in the test set.
    5  *
    6  *  COPYRIGHT (c) 1989-1999.
     1/*
     2 *  COPYRIGHT (c) 1989-2013.
    73 *  On-Line Applications Research Corporation (OAR).
    84 *
     
    1410#include <tmacros.h>
    1511
    16 /* functions */
    17 
    18 rtems_task Init(
    19   rtems_task_argument argument
    20 );
    21 
    22 rtems_timer_service_routine Delayed_routine(
    23   rtems_id  ignored_id,
    24   void     *ignored_address
    25 );
    26 
    27 rtems_task Task_1(
    28   rtems_task_argument argument
    29 );
    30 
    31 rtems_task Task_2(
    32   rtems_task_argument argument
    33 );
    34 
    35 rtems_task Task_3(
    36   rtems_task_argument argument
    37 );
    38 
    39 rtems_task Task_4(
    40   rtems_task_argument argument
    41 );
    42 
    43 rtems_isr Service_routine(
    44   rtems_vector_number ignored
    45 );
    46 
    47 rtems_timer_service_routine Io_during_interrupt(
    48   rtems_id ignored
    49 );
    50 
    51 /*void Screen1( void );
    52 
    53 void Screen2( void );
    54 
    55 void Screen3( void );
    56 
    57 void Screen4( void );
    58 
    59 void Screen5( void );
    60 
    61 void Screen6( void );
    62 
    63 void Screen7( void );
    64 
    65 void Screen8( void );
    66 
    67 void Screen9( void );
    68 
    69 void Screen10( void );
    70 
    71 void Screen11( void );*/
    72 
    73 void Screen12( void );
    74 
    7512/* configuration information */
    7613
     
    7815#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    7916
    80 #define CONFIGURE_MAXIMUM_TASKS              10
    81 #define CONFIGURE_MAXIMUM_TIMERS              1
    82 #define CONFIGURE_MAXIMUM_SEMAPHORES          2
    83 #define CONFIGURE_MAXIMUM_MESSAGE_QUEUES      1
    84 #define CONFIGURE_MAXIMUM_PARTITIONS          1
     17#define CONFIGURE_MAXIMUM_TASKS               1
    8518#define CONFIGURE_MAXIMUM_REGIONS             1
    86 #define CONFIGURE_MAXIMUM_PERIODS             1
    87 #define CONFIGURE_MAXIMUM_USER_EXTENSIONS     0
    88 #define CONFIGURE_TICKS_PER_TIMESLICE       100
    8919
    9020#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    9121
    92 #define CONFIGURE_EXTRA_TASK_STACKS         (20 * RTEMS_MINIMUM_STACK_SIZE)
    93 
    9422#include <rtems/confdefs.h>
    9523
    96 /* global variables */
    97 
    98 TEST_EXTERN rtems_id   Task_id[ 11 ];       /* array of task ids */
    99 TEST_EXTERN rtems_name Task_name[ 11 ];     /* array of task names */
    100 
    101 TEST_EXTERN rtems_name Semaphore_name[ 4 ]; /* array of semaphore names */
    102 TEST_EXTERN rtems_id   Semaphore_id[ 4 ];   /* array of semaphore ids */
    103 
    104 TEST_EXTERN rtems_name Queue_name[ 3 ];     /* array of queue names */
    105 TEST_EXTERN rtems_id   Queue_id[ 3 ];       /* array of queue ids */
    106 
    107 TEST_EXTERN rtems_name Partition_name[ 2 ]; /* array of partition names */
    108 TEST_EXTERN rtems_id   Partition_id[ 2 ];   /* array of partition ids */
    109 
    110 TEST_EXTERN rtems_name Region_name[ 2 ];    /* array of region names */
    111 TEST_EXTERN rtems_id   Region_id[ 2 ];      /* array of region ids */
    112 
    113 TEST_EXTERN rtems_name Port_name[ 2 ];      /* array of port names */
    114 TEST_EXTERN rtems_id   Port_id[ 2 ];        /* array of port ids */
    115 
    116 TEST_EXTERN rtems_name Period_name[ 2 ];    /* array of period names */
    117 TEST_EXTERN rtems_id   Period_id[ 2 ];      /* array of period ids */
    118 
    119 TEST_EXTERN rtems_id   Junk_id;             /* id used to return errors */
    120 
    121 #define Internal_port_area (void *) 0x00001000
    122 #define External_port_area (void *) 0x00002000
    123 
    124 TEST_EXTERN uint8_t   Partition_good_area[256] CPU_STRUCTURE_ALIGNMENT;
    125 #define Partition_bad_area (void *) 0x00000005
    126 
    127 TEST_EXTERN uint32_t   Region_good_area[4096] CPU_STRUCTURE_ALIGNMENT;
    128 #define Region_bad_area    (void *) 0x00000005
    129 #define REGION_START_OFFSET 1024
    130 #define REGION_LENGTH       512
    131 
    13224/* end of include file */
Note: See TracChangeset for help on using the changeset viewer.