source: rtems/c/src/ada-tests/mptests/mp10/mptest.ads @ 8ed37e3c

4.104.114.84.95
Last change on this file since 8ed37e3c was d0f426a1, checked in by Joel Sherrill <joel.sherrill@…>, on 06/03/97 at 00:34:04

* empty log message *

  • Property mode set to 100644
File size: 6.1 KB
Line 
1--
2--  MPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 10 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 BSP_MPCI;
25with RTEMS;
26
27package MPTEST is
28
29--
30--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
31--  by this test.
32--
33
34   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID;
35   TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME;
36
37--
38--  These arrays contain the IDs and NAMEs of all RTEMS message
39--  queues created by this test.
40--
41
42   QUEUE_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID;
43   QUEUE_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME;
44
45--
46--  These arrays contain the IDs and NAMEs of all RTEMS semaphore
47--  created by this test.
48--
49
50   SEMAPHORE_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID;
51   SEMAPHORE_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME;
52
53--
54--  This variable contains the ID of the remote task with which this
55--  test interacts.
56--
57
58   REMOTE_TID  : RTEMS.ID;
59
60--
61--  This variable contains the node on which the remote task with which
62--  this test interacts resides.
63--
64
65   REMOTE_NODE : RTEMS.UNSIGNED32;
66
67--
68--  The number of events to process per dot printed out.
69--
70
71   PER_DOT : constant RTEMS.UNSIGNED32 := 100;
72
73--
74--  INIT
75--
76--  DESCRIPTION:
77--
78--  This RTEMS task initializes the application.
79--
80
81   procedure INIT (
82      ARGUMENT : in     RTEMS.TASK_ARGUMENT
83   );
84
85--
86--  TEST_TASK_1
87--
88--  DESCRIPTION:
89--
90--  This is the body of one of the RTEMS tasks which constitute this test.
91--
92
93   procedure TEST_TASK_1 (
94      ARGUMENT : in     RTEMS.TASK_ARGUMENT
95   );
96
97--
98--  TEST_TASK_2 
99--
100--  DESCRIPTION:
101--
102--  This is the body of one of the RTEMS tasks which constitute this test.
103--
104 
105   procedure TEST_TASK_2 (
106      ARGUMENT : in     RTEMS.TASK_ARGUMENT
107   );
108
109--
110--  TEST_TASK_3 
111--
112--  DESCRIPTION:
113--
114--  This is the body of one of the RTEMS tasks which constitute this test.
115--
116 
117   procedure TEST_TASK_3 (
118      RESTART : in     RTEMS.TASK_ARGUMENT
119   );
120
121--
122--  This is the Driver Address Table for this test.
123--
124
125   DEVICE_DRIVERS : aliased RTEMS.DRIVER_ADDRESS_TABLE( 1 .. 1 ) :=
126   (1=>
127      (
128        CLOCK_DRIVER.INITIALIZE'ACCESS,              -- Initialization
129        RTEMS.NO_DRIVER_ENTRY,                       -- Open
130        RTEMS.NO_DRIVER_ENTRY,                       -- Close
131        RTEMS.NO_DRIVER_ENTRY,                       -- Read
132        RTEMS.NO_DRIVER_ENTRY,                       -- Write
133        RTEMS.NO_DRIVER_ENTRY                        -- Control
134      )
135   );
136
137--
138--  This is the Initialization Tasks Table for this test.
139--
140
141   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) :=
142   (1=>
143     (
144       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
145       2048,                                          -- stack size
146       1,                                             -- priority
147       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
148       MPTEST.INIT'ACCESS,                            -- entry point
149       RTEMS.NO_PREEMPT,                              -- initial mode
150       0                                              -- argument list
151     )
152   );
153
154----------------------------------------------------------------------------
155----------------------------------------------------------------------------
156--                             BEGIN SUBPACKAGE                           --
157----------------------------------------------------------------------------
158----------------------------------------------------------------------------
159
160   --
161   --  MPTEST.PER_NODE_CONFIGURATION / SPECIFICATION
162   --
163   --  DESCRIPTION:
164   --
165   --  This package is the specification for the subpackage
166   --  which will define the per node configuration parameters.
167   --
168   
169   package PER_NODE_CONFIGURATION is
170
171   --
172   --  LOCAL_NODE_NUMBER
173   --
174   --  DESCRIPTION:
175   --
176   --  This function returns the node number for this node.
177   --
178
179      function LOCAL_NODE_NUMBER
180      return RTEMS.UNSIGNED32;
181 
182      pragma INLINE ( LOCAL_NODE_NUMBER );
183
184   end PER_NODE_CONFIGURATION;
185 
186----------------------------------------------------------------------------
187----------------------------------------------------------------------------
188--                              END SUBPACKAGE                            --
189----------------------------------------------------------------------------
190----------------------------------------------------------------------------
191
192--
193--  This is the Multiprocessor Configuration Table for this test.
194--
195
196   MULTIPROCESSING_CONFIGURATION : aliased RTEMS.MULTIPROCESSING_TABLE := (
197      MPTEST.PER_NODE_CONFIGURATION.LOCAL_NODE_NUMBER,
198      2,                         -- maximum # nodes in system
199      32,                        -- maximum # global objects
200      32                         -- maximum # proxies
201    );
202
203--
204--  This is the Configuration Table for this test.
205--
206
207   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
208      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
209      64 * 1024,                 -- executive RAM size
210      10,                        -- maximum # tasks
211      0,                         -- maximum # timers
212      1,                         -- maximum # semaphores
213      1,                         -- maximum # message queues
214      0,                         -- maximum # messages
215      0,                         -- maximum # partitions
216      0,                         -- maximum # regions
217      0,                         -- maximum # dp memory areas
218      0,                         -- maximum # periods
219      0,                         -- maximum # user extensions
220      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
221      50                         -- # ticks in a timeslice
222  );
223
224end MPTEST;
Note: See TracBrowser for help on using the repository browser.