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