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

4.104.114.84.95
Last change on this file since 9917d5da was bf9ae83, checked in by Joel Sherrill <joel.sherrill@…>, on 06/02/97 at 20:32:11

modified copyright notice to be the same as RTEMS 4.0.0.

changed the CVS ID string to be a "development" version.

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