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