source: rtems/c/src/ada-tests/mptests/mp06/mptest.ads @ f435621b

4.104.114.84.95
Last change on this file since f435621b was 190f5c23, checked in by Joel Sherrill <joel.sherrill@…>, on 08/26/02 at 14:27:21

2002-08-26 Joel Sherrill <joel@…>

  • mptests/mp01/mptest.ads, mptests/mp02/mptest.ads, mptests/mp03/mptest.ads, mptests/mp04/mptest.ads, mptests/mp05/mptest.ads, mptests/mp06/mptest.ads, mptests/mp07/mptest.ads, mptests/mp08/mptest.ads, mptests/mp09/mptest.ads, mptests/mp10/mptest.ads, mptests/mp11/mptest.ads, mptests/mp12/mptest.ads, mptests/mp13/mptest.ads, mptests/mp14/mptest.adb, mptests/mp14/mptest.ads: Per PR274, identify the need for the BSP_MPCI package. It was a trivial dependency and eliminated.
  • Property mode set to 100644
File size: 6.6 KB
Line 
1--
2--  MPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 6 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
24with RTEMS;
25
26package MPTEST is
27
28--
29--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
30--  by this test.
31--
32
33   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID;
34   TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME;
35
36--
37--  These arrays contain the IDs and NAMEs of all RTEMS timers created
38--  by this test.
39--
40 
41   TIMER_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID;
42   TIMER_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME;
43 
44--
45--  This variable is set when the test should stop executing.
46--
47   STOP_TEST : RTEMS.BOOLEAN;
48
49--
50--  This variable contains the ID of the remote task with which this
51--  test interacts.
52--
53
54   REMOTE_TID  : RTEMS.ID;
55
56--
57--  This variable contains the node on which the remote task with which
58--  this test interacts resides.
59--
60
61   REMOTE_NODE : RTEMS.UNSIGNED32;
62
63--
64--  The number of signals to process per dot printed out.
65--
66
67   MAXIMUM_DOTS : constant RTEMS.UNSIGNED32 := 25;
68
69--
70--  The following is a table of the event sets which consist of
71--  a single event.  This test cycles through all of these
72--  events.
73--
74
75   EVENT_SET_TABLE : constant array ( 0 .. 30 ) of RTEMS.EVENT_SET := (
76      RTEMS.EVENT_0,
77      RTEMS.EVENT_1,
78      RTEMS.EVENT_2,
79      RTEMS.EVENT_3,
80      RTEMS.EVENT_4,
81      RTEMS.EVENT_5,
82      RTEMS.EVENT_6,
83      RTEMS.EVENT_7,
84      RTEMS.EVENT_8,
85      RTEMS.EVENT_9,
86      RTEMS.EVENT_10,
87      RTEMS.EVENT_11,
88      RTEMS.EVENT_12,
89      RTEMS.EVENT_13,
90      RTEMS.EVENT_14,
91      RTEMS.EVENT_15,
92      RTEMS.EVENT_16,
93      RTEMS.EVENT_17,
94      RTEMS.EVENT_18,
95      RTEMS.EVENT_19,
96      RTEMS.EVENT_20,
97      RTEMS.EVENT_21,
98      RTEMS.EVENT_22,
99      RTEMS.EVENT_23,
100      RTEMS.EVENT_24,
101      RTEMS.EVENT_25,
102      RTEMS.EVENT_26,
103      RTEMS.EVENT_27,
104      RTEMS.EVENT_28,
105      RTEMS.EVENT_29,
106      RTEMS.EVENT_30
107   );
108
109--
110--  INIT
111--
112--  DESCRIPTION:
113--
114--  This RTEMS task initializes the application.
115--
116
117   procedure INIT (
118      ARGUMENT : in     RTEMS.TASK_ARGUMENT
119   );
120
121--
122--  STOP_TEST_TSR
123--
124--  DESCRIPTION:
125--
126--  This subprogram is a TSR which sets the "stop test" flag.
127--
128 
129   procedure STOP_TEST_TSR (
130      IGNORED1 : in     RTEMS.ID;
131      IGNORED2 : in     RTEMS.ADDRESS
132   );
133
134--
135--  TEST_TASK
136--
137--  DESCRIPTION:
138--
139--  This is the body of the RTEMS tasks which constitute this test.
140--
141
142   procedure TEST_TASK (
143      ARGUMENT : in     RTEMS.TASK_ARGUMENT
144   );
145
146--
147--  This is the Driver Address Table for this test.
148--
149
150   DEVICE_DRIVERS : aliased RTEMS.DRIVER_ADDRESS_TABLE( 1 .. 1 ) :=
151   (1=>
152      (
153        CLOCK_DRIVER.INITIALIZE'ACCESS,              -- Initialization
154        RTEMS.NO_DRIVER_ENTRY,                       -- Open
155        RTEMS.NO_DRIVER_ENTRY,                       -- Close
156        RTEMS.NO_DRIVER_ENTRY,                       -- Read
157        RTEMS.NO_DRIVER_ENTRY,                       -- Write
158        RTEMS.NO_DRIVER_ENTRY                        -- Control
159      )
160   );
161
162--
163--  This is the Initialization Tasks Table for this test.
164--
165
166   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) :=
167   (1=>
168     (
169       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
170       2048,                                          -- stack size
171       1,                                             -- priority
172       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
173       MPTEST.INIT'ACCESS,                            -- entry point
174       RTEMS.NO_PREEMPT,                              -- initial mode
175       0                                              -- argument list
176     )
177   );
178
179----------------------------------------------------------------------------
180----------------------------------------------------------------------------
181--                             BEGIN SUBPACKAGE                           --
182----------------------------------------------------------------------------
183----------------------------------------------------------------------------
184
185   --
186   --  MPTEST.PER_NODE_CONFIGURATION / SPECIFICATION
187   --
188   --  DESCRIPTION:
189   --
190   --  This package is the specification for the subpackage
191   --  which will define the per node configuration parameters.
192   --
193   
194   package PER_NODE_CONFIGURATION is
195
196   --
197   --  LOCAL_NODE_NUMBER
198   --
199   --  DESCRIPTION:
200   --
201   --  This function returns the node number for this node.
202   --
203
204      function LOCAL_NODE_NUMBER
205      return RTEMS.UNSIGNED32;
206 
207      pragma INLINE ( LOCAL_NODE_NUMBER );
208
209   end PER_NODE_CONFIGURATION;
210 
211----------------------------------------------------------------------------
212----------------------------------------------------------------------------
213--                              END SUBPACKAGE                            --
214----------------------------------------------------------------------------
215----------------------------------------------------------------------------
216
217--
218--  This is the Multiprocessor Configuration Table for this test.
219--
220
221   MULTIPROCESSING_CONFIGURATION : aliased RTEMS.MULTIPROCESSING_TABLE := (
222      MPTEST.PER_NODE_CONFIGURATION.LOCAL_NODE_NUMBER,
223      2,                         -- maximum # nodes in system
224      32,                        -- maximum # global objects
225      32                         -- maximum # proxies
226    );
227
228--
229--  This is the Configuration Table for this test.
230--
231
232   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
233      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
234      64 * 1024,                 -- executive RAM size
235      10,                        -- maximum # tasks
236      1,                         -- maximum # timers
237      2,                         -- maximum # semaphores
238      0,                         -- maximum # message queues
239      0,                         -- maximum # messages
240      0,                         -- maximum # partitions
241      0,                         -- maximum # regions
242      0,                         -- maximum # dp memory areas
243      0,                         -- maximum # periods
244      0,                         -- maximum # user extensions
245      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
246      50                         -- # ticks in a timeslice
247  );
248
249end MPTEST;
Note: See TracBrowser for help on using the repository browser.