source: rtems/c/src/tests/sptests/sp16/system.h @ 0895bdb

4.104.114.84.95
Last change on this file since 0895bdb was 9a993ed5, checked in by Joel Sherrill <joel.sherrill@…>, on 04/27/98 at 13:51:23

Added CONFIGURE_EXTRA_TASK_STACKS definition to make memory requirements
more accurate.

  • Property mode set to 100644
File size: 2.3 KB
Line 
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-1998.
7 *  On-Line Applications Research Corporation (OAR).
8 *  Copyright assigned to U.S. Government, 1994.
9 *
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.OARcorp.com/rtems/license.html.
13 *
14 *  $Id$
15 */
16
17#include <tmacros.h>
18
19/* functions */
20
21rtems_task Init(
22  rtems_task_argument argument
23);
24 
25rtems_task Task_1(
26  rtems_task_argument argument
27);
28 
29rtems_task Task_2(
30  rtems_task_argument argument
31);
32 
33rtems_task Task_3(
34  rtems_task_argument argument
35);
36 
37rtems_task Task_4(
38  rtems_task_argument argument
39);
40 
41rtems_task Task5(
42  rtems_task_argument argument
43);
44 
45/* configuration information */
46
47#define CONFIGURE_SPTEST
48
49#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
50#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
51
52#define CONFIGURE_MAXIMUM_REGIONS             4
53#define CONFIGURE_TICKS_PER_TIMESLICE       100
54
55#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
56
57#define CONFIGURE_EXTRA_TASK_STACKS         (1 * RTEMS_MINIMUM_STACK_SIZE)
58
59#include <confdefs.h>
60
61/* global variables */
62
63TEST_EXTERN rtems_id   Task_id[ 6 ];      /* array of task ids */
64TEST_EXTERN rtems_name Task_name[ 6 ];    /* array of task names */
65TEST_EXTERN rtems_id   Region_id[ 5 ];    /* array of region ids */
66TEST_EXTERN rtems_name Region_name[ 5 ];  /* array of region names */
67
68TEST_EXTERN rtems_unsigned8 Area_1[4096] CPU_STRUCTURE_ALIGNMENT;
69TEST_EXTERN rtems_unsigned8 Area_2[4096] CPU_STRUCTURE_ALIGNMENT;
70TEST_EXTERN rtems_unsigned8 Area_3[4096] CPU_STRUCTURE_ALIGNMENT;
71TEST_EXTERN rtems_unsigned8 Area_4[8192] CPU_STRUCTURE_ALIGNMENT;
72
73#define BASE_PRIORITY 140
74
75#define Put_address_from_area_1( _to_be_printed ) \
76   printf( "0x%08lx", \
77     (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_1 ) )
78
79#define Put_address_from_area_2( _to_be_printed ) \
80   printf( "0x%08lx", \
81     (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_2 ) )
82
83#define Put_address_from_area_3( _to_be_printed ) \
84   printf( "0x%08lx", \
85     (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_3 ) )
86
87#define Put_address_from_area_4( _to_be_printed ) \
88   printf( "0x%08lx", \
89     (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_4 ) )
90
91/* end of include file */
Note: See TracBrowser for help on using the repository browser.