1 | -- |
---|
2 | -- MPTEST / SPECIFICATION |
---|
3 | -- |
---|
4 | -- DESCRIPTION: |
---|
5 | -- |
---|
6 | -- This package is the specification for Test 8 of the RTEMS |
---|
7 | -- Multiprocessor Test Suite. |
---|
8 | -- |
---|
9 | -- DEPENDENCIES: |
---|
10 | -- |
---|
11 | -- |
---|
12 | -- |
---|
13 | -- COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
14 | -- On-Line Applications Research Corporation (OAR). |
---|
15 | -- All rights assigned to U.S. Government, 1994. |
---|
16 | -- |
---|
17 | -- This material may be reproduced by or for the U.S. Government pursuant |
---|
18 | -- to the copyright license under the clause at DFARS 252.227-7013. This |
---|
19 | -- notice must appear in all copies of this file and its derivatives. |
---|
20 | -- |
---|
21 | -- mptest.ads,v 1.3 1995/07/12 19:39:38 joel Exp |
---|
22 | -- |
---|
23 | |
---|
24 | with CLOCK_DRIVER; |
---|
25 | with BSP_MPCI; |
---|
26 | with RTEMS; |
---|
27 | |
---|
28 | package MPTEST is |
---|
29 | |
---|
30 | -- |
---|
31 | -- These arrays contain the IDs and NAMEs of all RTEMS tasks created |
---|
32 | -- by this test. |
---|
33 | -- |
---|
34 | |
---|
35 | TASK_ID : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID; |
---|
36 | TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME; |
---|
37 | |
---|
38 | -- |
---|
39 | -- These arrays contain the IDs and NAMEs of all RTEMS semaphores created |
---|
40 | -- by this test. |
---|
41 | -- |
---|
42 | |
---|
43 | SEMAPHORE_ID : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID; |
---|
44 | SEMAPHORE_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME; |
---|
45 | |
---|
46 | -- |
---|
47 | -- This variable contains the ID of the remote task with which this |
---|
48 | -- test interacts. |
---|
49 | -- |
---|
50 | |
---|
51 | REMOTE_TID : RTEMS.ID; |
---|
52 | |
---|
53 | -- |
---|
54 | -- This variable contains the node on which the remote task with which |
---|
55 | -- this test interacts resides. |
---|
56 | -- |
---|
57 | |
---|
58 | REMOTE_NODE : RTEMS.UNSIGNED32; |
---|
59 | |
---|
60 | -- |
---|
61 | -- The number of events to process per dot printed out. |
---|
62 | -- |
---|
63 | |
---|
64 | PER_DOT : constant RTEMS.UNSIGNED32 := 100; |
---|
65 | |
---|
66 | -- |
---|
67 | -- INIT |
---|
68 | -- |
---|
69 | -- DESCRIPTION: |
---|
70 | -- |
---|
71 | -- This RTEMS task initializes the application. |
---|
72 | -- |
---|
73 | |
---|
74 | procedure INIT ( |
---|
75 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
76 | ); |
---|
77 | |
---|
78 | -- |
---|
79 | -- TEST_TASK |
---|
80 | -- |
---|
81 | -- DESCRIPTION: |
---|
82 | -- |
---|
83 | -- This is the body of the RTEMS tasks which constitute this test. |
---|
84 | -- |
---|
85 | |
---|
86 | procedure TEST_TASK ( |
---|
87 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
88 | ); |
---|
89 | |
---|
90 | -- |
---|
91 | -- This is the Driver Address Table for this test. |
---|
92 | -- |
---|
93 | |
---|
94 | DEVICE_DRIVERS : aliased RTEMS.DRIVER_ADDRESS_TABLE( 1 .. 1 ) := |
---|
95 | (1=> |
---|
96 | ( |
---|
97 | CLOCK_DRIVER.INITIALIZE'ACCESS, -- Initialization |
---|
98 | RTEMS.NO_DRIVER_ENTRY, -- Open |
---|
99 | RTEMS.NO_DRIVER_ENTRY, -- Close |
---|
100 | RTEMS.NO_DRIVER_ENTRY, -- Read |
---|
101 | RTEMS.NO_DRIVER_ENTRY, -- Write |
---|
102 | RTEMS.NO_DRIVER_ENTRY -- Control |
---|
103 | ) |
---|
104 | ); |
---|
105 | |
---|
106 | -- |
---|
107 | -- This is the Initialization Tasks Table for this test. |
---|
108 | -- |
---|
109 | |
---|
110 | INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) := |
---|
111 | (1=> |
---|
112 | ( |
---|
113 | RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ), -- task name |
---|
114 | 2048, -- stack size |
---|
115 | 1, -- priority |
---|
116 | RTEMS.DEFAULT_ATTRIBUTES, -- attributes |
---|
117 | MPTEST.INIT'ACCESS, -- entry point |
---|
118 | RTEMS.NO_PREEMPT, -- initial mode |
---|
119 | 0 -- argument list |
---|
120 | ) |
---|
121 | ); |
---|
122 | |
---|
123 | ---------------------------------------------------------------------------- |
---|
124 | ---------------------------------------------------------------------------- |
---|
125 | -- BEGIN SUBPACKAGE -- |
---|
126 | ---------------------------------------------------------------------------- |
---|
127 | ---------------------------------------------------------------------------- |
---|
128 | |
---|
129 | -- |
---|
130 | -- MPTEST.PER_NODE_CONFIGURATION / SPECIFICATION |
---|
131 | -- |
---|
132 | -- DESCRIPTION: |
---|
133 | -- |
---|
134 | -- This package is the specification for the subpackage |
---|
135 | -- which will define the per node configuration parameters. |
---|
136 | -- |
---|
137 | |
---|
138 | package PER_NODE_CONFIGURATION is |
---|
139 | |
---|
140 | -- |
---|
141 | -- LOCAL_NODE_NUMBER |
---|
142 | -- |
---|
143 | -- DESCRIPTION: |
---|
144 | -- |
---|
145 | -- This function returns the node number for this node. |
---|
146 | -- |
---|
147 | |
---|
148 | function LOCAL_NODE_NUMBER |
---|
149 | return RTEMS.UNSIGNED32; |
---|
150 | |
---|
151 | pragma INLINE ( LOCAL_NODE_NUMBER ); |
---|
152 | |
---|
153 | end PER_NODE_CONFIGURATION; |
---|
154 | |
---|
155 | ---------------------------------------------------------------------------- |
---|
156 | ---------------------------------------------------------------------------- |
---|
157 | -- END SUBPACKAGE -- |
---|
158 | ---------------------------------------------------------------------------- |
---|
159 | ---------------------------------------------------------------------------- |
---|
160 | |
---|
161 | -- |
---|
162 | -- This is the Multiprocessor Configuration Table for this test. |
---|
163 | -- |
---|
164 | |
---|
165 | MULTIPROCESSING_CONFIGURATION : aliased RTEMS.MULTIPROCESSING_TABLE := ( |
---|
166 | MPTEST.PER_NODE_CONFIGURATION.LOCAL_NODE_NUMBER, |
---|
167 | 2, -- maximum # nodes in system |
---|
168 | 32, -- maximum # global objects |
---|
169 | 32 -- maximum # proxies |
---|
170 | ); |
---|
171 | |
---|
172 | -- |
---|
173 | -- This is the Configuration Table for this test. |
---|
174 | -- |
---|
175 | |
---|
176 | CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := ( |
---|
177 | RTEMS.NULL_ADDRESS, -- will be replaced by BSP |
---|
178 | 64 * 1024, -- executive RAM size |
---|
179 | 10, -- maximum # tasks |
---|
180 | 1, -- maximum # timers |
---|
181 | 1, -- maximum # semaphores |
---|
182 | 0, -- maximum # message queues |
---|
183 | 0, -- maximum # messages |
---|
184 | 0, -- maximum # partitions |
---|
185 | 0, -- maximum # regions |
---|
186 | 0, -- maximum # dp memory areas |
---|
187 | 0, -- maximum # periods |
---|
188 | 0, -- maximum # user extensions |
---|
189 | RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick |
---|
190 | 50 -- # ticks in a timeslice |
---|
191 | ); |
---|
192 | |
---|
193 | end MPTEST; |
---|