1 | -- |
---|
2 | -- MPTEST / SPECIFICATION |
---|
3 | -- |
---|
4 | -- DESCRIPTION: |
---|
5 | -- |
---|
6 | -- This package is the specification for Test 12 of the RTEMS |
---|
7 | -- Multiprocessor Test Suite. |
---|
8 | -- |
---|
9 | -- DEPENDENCIES: |
---|
10 | -- |
---|
11 | -- |
---|
12 | -- |
---|
13 | -- COPYRIGHT (c) 1989-1997. |
---|
14 | -- On-Line Applications Research Corporation (OAR). |
---|
15 | -- Copyright assigned to U.S. Government, 1994. |
---|
16 | -- |
---|
17 | -- The license and distribution terms for this file may in |
---|
18 | -- the file LICENSE in this distribution or at |
---|
19 | -- http://www.OARcorp.com/rtems/license.html. |
---|
20 | -- |
---|
21 | -- $Id$ |
---|
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 semaphore |
---|
40 | -- created by this test. |
---|
41 | -- |
---|
42 | |
---|
43 | PARTITION_ID : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID; |
---|
44 | PARTITION_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 | -- INIT |
---|
62 | -- |
---|
63 | -- DESCRIPTION: |
---|
64 | -- |
---|
65 | -- This RTEMS task initializes the application. |
---|
66 | -- |
---|
67 | |
---|
68 | procedure INIT ( |
---|
69 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
70 | ); |
---|
71 | |
---|
72 | -- |
---|
73 | -- This is the area used for the partition. |
---|
74 | -- |
---|
75 | |
---|
76 | PARTITION_AREA : |
---|
77 | array ( RTEMS.UNSIGNED32 range 0 .. 1023 ) of RTEMS.UNSIGNED8; |
---|
78 | for PARTITION_AREA'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT; |
---|
79 | |
---|
80 | -- |
---|
81 | -- This is the Driver Address Table for this test. |
---|
82 | -- |
---|
83 | |
---|
84 | DEVICE_DRIVERS : aliased RTEMS.DRIVER_ADDRESS_TABLE( 1 .. 1 ) := |
---|
85 | (1=> |
---|
86 | ( |
---|
87 | CLOCK_DRIVER.INITIALIZE'ACCESS, -- Initialization |
---|
88 | RTEMS.NO_DRIVER_ENTRY, -- Open |
---|
89 | RTEMS.NO_DRIVER_ENTRY, -- Close |
---|
90 | RTEMS.NO_DRIVER_ENTRY, -- Read |
---|
91 | RTEMS.NO_DRIVER_ENTRY, -- Write |
---|
92 | RTEMS.NO_DRIVER_ENTRY -- Control |
---|
93 | ) |
---|
94 | ); |
---|
95 | |
---|
96 | -- |
---|
97 | -- This is the Initialization Tasks Table for this test. |
---|
98 | -- |
---|
99 | |
---|
100 | INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) := |
---|
101 | (1=> |
---|
102 | ( |
---|
103 | RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ), -- task name |
---|
104 | 2048, -- stack size |
---|
105 | 1, -- priority |
---|
106 | RTEMS.DEFAULT_ATTRIBUTES, -- attributes |
---|
107 | MPTEST.INIT'ACCESS, -- entry point |
---|
108 | RTEMS.NO_PREEMPT, -- initial mode |
---|
109 | 0 -- argument list |
---|
110 | ) |
---|
111 | ); |
---|
112 | |
---|
113 | ---------------------------------------------------------------------------- |
---|
114 | ---------------------------------------------------------------------------- |
---|
115 | -- BEGIN SUBPACKAGE -- |
---|
116 | ---------------------------------------------------------------------------- |
---|
117 | ---------------------------------------------------------------------------- |
---|
118 | |
---|
119 | -- |
---|
120 | -- MPTEST.PER_NODE_CONFIGURATION / SPECIFICATION |
---|
121 | -- |
---|
122 | -- DESCRIPTION: |
---|
123 | -- |
---|
124 | -- This package is the specification for the subpackage |
---|
125 | -- which will define the per node configuration parameters. |
---|
126 | -- |
---|
127 | |
---|
128 | package PER_NODE_CONFIGURATION is |
---|
129 | |
---|
130 | -- |
---|
131 | -- LOCAL_NODE_NUMBER |
---|
132 | -- |
---|
133 | -- DESCRIPTION: |
---|
134 | -- |
---|
135 | -- This function returns the node number for this node. |
---|
136 | -- |
---|
137 | |
---|
138 | function LOCAL_NODE_NUMBER |
---|
139 | return RTEMS.UNSIGNED32; |
---|
140 | |
---|
141 | pragma INLINE ( LOCAL_NODE_NUMBER ); |
---|
142 | |
---|
143 | end PER_NODE_CONFIGURATION; |
---|
144 | |
---|
145 | ---------------------------------------------------------------------------- |
---|
146 | ---------------------------------------------------------------------------- |
---|
147 | -- END SUBPACKAGE -- |
---|
148 | ---------------------------------------------------------------------------- |
---|
149 | ---------------------------------------------------------------------------- |
---|
150 | |
---|
151 | -- |
---|
152 | -- This is the Multiprocessor Configuration Table for this test. |
---|
153 | -- |
---|
154 | |
---|
155 | MULTIPROCESSING_CONFIGURATION : aliased RTEMS.MULTIPROCESSING_TABLE := ( |
---|
156 | MPTEST.PER_NODE_CONFIGURATION.LOCAL_NODE_NUMBER, |
---|
157 | 2, -- maximum # nodes in system |
---|
158 | 32, -- maximum # global objects |
---|
159 | 32 -- maximum # proxies |
---|
160 | ); |
---|
161 | |
---|
162 | -- |
---|
163 | -- This is the Configuration Table for this test. |
---|
164 | -- |
---|
165 | |
---|
166 | CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := ( |
---|
167 | RTEMS.NULL_ADDRESS, -- will be replaced by BSP |
---|
168 | 64 * 1024, -- executive RAM size |
---|
169 | 10, -- maximum # tasks |
---|
170 | 0, -- maximum # timers |
---|
171 | 0, -- maximum # semaphores |
---|
172 | 0, -- maximum # message queues |
---|
173 | 0, -- maximum # messages |
---|
174 | 1, -- maximum # partitions |
---|
175 | 0, -- maximum # regions |
---|
176 | 0, -- maximum # dp memory areas |
---|
177 | 0, -- maximum # periods |
---|
178 | 0, -- maximum # user extensions |
---|
179 | RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick |
---|
180 | 50 -- # ticks in a timeslice |
---|
181 | ); |
---|
182 | |
---|
183 | end MPTEST; |
---|