1 | -- |
---|
2 | -- MPTEST / SPECIFICATION |
---|
3 | -- |
---|
4 | -- DESCRIPTION: |
---|
5 | -- |
---|
6 | -- This package is the specification for Test 11 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:40:02 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 message |
---|
40 | -- queues created by this test. |
---|
41 | -- |
---|
42 | |
---|
43 | QUEUE_ID : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID; |
---|
44 | QUEUE_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME; |
---|
45 | |
---|
46 | -- |
---|
47 | -- These arrays contain the IDs and NAMEs of all RTEMS semaphore |
---|
48 | -- created by this test. |
---|
49 | -- |
---|
50 | |
---|
51 | SEMAPHORE_ID : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID; |
---|
52 | SEMAPHORE_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME; |
---|
53 | |
---|
54 | -- |
---|
55 | -- These arrays contain the IDs and NAMEs of all RTEMS partition |
---|
56 | -- created by this test. |
---|
57 | -- |
---|
58 | |
---|
59 | PARTITION_ID : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID; |
---|
60 | PARTITION_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME; |
---|
61 | |
---|
62 | -- |
---|
63 | -- This is the area used for the partition. |
---|
64 | -- |
---|
65 | |
---|
66 | PARTITION_AREA : |
---|
67 | array ( RTEMS.UNSIGNED32 range 0 .. 1023 ) of RTEMS.UNSIGNED8; |
---|
68 | for PARTITION_AREA'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT; |
---|
69 | |
---|
70 | -- |
---|
71 | -- INIT |
---|
72 | -- |
---|
73 | -- DESCRIPTION: |
---|
74 | -- |
---|
75 | -- This RTEMS task initializes the application. |
---|
76 | -- |
---|
77 | |
---|
78 | procedure INIT ( |
---|
79 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
80 | ); |
---|
81 | |
---|
82 | -- |
---|
83 | -- This is the Driver Address Table for this test. |
---|
84 | -- |
---|
85 | |
---|
86 | DEVICE_DRIVERS : aliased RTEMS.DRIVER_ADDRESS_TABLE( 1 .. 1 ) := |
---|
87 | (1=> |
---|
88 | ( |
---|
89 | CLOCK_DRIVER.INITIALIZE'ACCESS, -- Initialization |
---|
90 | RTEMS.NO_DRIVER_ENTRY, -- Open |
---|
91 | RTEMS.NO_DRIVER_ENTRY, -- Close |
---|
92 | RTEMS.NO_DRIVER_ENTRY, -- Read |
---|
93 | RTEMS.NO_DRIVER_ENTRY, -- Write |
---|
94 | RTEMS.NO_DRIVER_ENTRY -- Control |
---|
95 | ) |
---|
96 | ); |
---|
97 | |
---|
98 | -- |
---|
99 | -- This is the Initialization Tasks Table for this test. |
---|
100 | -- |
---|
101 | |
---|
102 | INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) := |
---|
103 | (1=> |
---|
104 | ( |
---|
105 | RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ), -- task name |
---|
106 | 2048, -- stack size |
---|
107 | 1, -- priority |
---|
108 | RTEMS.DEFAULT_ATTRIBUTES, -- attributes |
---|
109 | MPTEST.INIT'ACCESS, -- entry point |
---|
110 | RTEMS.NO_PREEMPT, -- initial mode |
---|
111 | 0 -- argument list |
---|
112 | ) |
---|
113 | ); |
---|
114 | |
---|
115 | ---------------------------------------------------------------------------- |
---|
116 | ---------------------------------------------------------------------------- |
---|
117 | -- BEGIN SUBPACKAGE -- |
---|
118 | ---------------------------------------------------------------------------- |
---|
119 | ---------------------------------------------------------------------------- |
---|
120 | |
---|
121 | -- |
---|
122 | -- MPTEST.PER_NODE_CONFIGURATION / SPECIFICATION |
---|
123 | -- |
---|
124 | -- DESCRIPTION: |
---|
125 | -- |
---|
126 | -- This package is the specification for the subpackage |
---|
127 | -- which will define the per node configuration parameters. |
---|
128 | -- |
---|
129 | |
---|
130 | package PER_NODE_CONFIGURATION is |
---|
131 | |
---|
132 | -- |
---|
133 | -- LOCAL_NODE_NUMBER |
---|
134 | -- |
---|
135 | -- DESCRIPTION: |
---|
136 | -- |
---|
137 | -- This function returns the node number for this node. |
---|
138 | -- |
---|
139 | |
---|
140 | function LOCAL_NODE_NUMBER |
---|
141 | return RTEMS.UNSIGNED32; |
---|
142 | |
---|
143 | pragma INLINE ( LOCAL_NODE_NUMBER ); |
---|
144 | |
---|
145 | end PER_NODE_CONFIGURATION; |
---|
146 | |
---|
147 | ---------------------------------------------------------------------------- |
---|
148 | ---------------------------------------------------------------------------- |
---|
149 | -- END SUBPACKAGE -- |
---|
150 | ---------------------------------------------------------------------------- |
---|
151 | ---------------------------------------------------------------------------- |
---|
152 | |
---|
153 | -- |
---|
154 | -- This is the Multiprocessor Configuration Table for this test. |
---|
155 | -- |
---|
156 | |
---|
157 | MULTIPROCESSING_CONFIGURATION : aliased RTEMS.MULTIPROCESSING_TABLE := ( |
---|
158 | MPTEST.PER_NODE_CONFIGURATION.LOCAL_NODE_NUMBER, |
---|
159 | 2, -- maximum # nodes in system |
---|
160 | 0, -- maximum # global objects |
---|
161 | 0 -- maximum # proxies |
---|
162 | ); |
---|
163 | |
---|
164 | -- |
---|
165 | -- This is the Configuration Table for this test. |
---|
166 | -- |
---|
167 | |
---|
168 | CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := ( |
---|
169 | RTEMS.NULL_ADDRESS, -- will be replaced by BSP |
---|
170 | 64 * 1024, -- executive RAM size |
---|
171 | 10, -- maximum # tasks |
---|
172 | 0, -- maximum # timers |
---|
173 | 1, -- maximum # semaphores |
---|
174 | 1, -- maximum # message queues |
---|
175 | 0, -- maximum # messages |
---|
176 | 1, -- maximum # partitions |
---|
177 | 0, -- maximum # regions |
---|
178 | 0, -- maximum # dp memory areas |
---|
179 | 0, -- maximum # periods |
---|
180 | 0, -- maximum # user extensions |
---|
181 | RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick |
---|
182 | 50 -- # ticks in a timeslice |
---|
183 | ); |
---|
184 | |
---|
185 | end MPTEST; |
---|