source: rtems/c/src/ada-tests/mptests/mp07/mptest.ads @ 48bfd992

4.104.114.84.95
Last change on this file since 48bfd992 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: 5.7 KB
Line 
1--
2--  MPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 7 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 timers created
39--  by this test.
40--
41
42   TIMER_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID;
43   TIMER_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME;
44
45--
46--  This variable is set when the test should stop executing.
47--
48   STOP_TEST : RTEMS.BOOLEAN;
49
50--
51--  This variable contains the ID of the remote task with which this
52--  test interacts.
53--
54
55   REMOTE_TID  : RTEMS.ID;
56
57--
58--  This variable contains the node on which the remote task with which
59--  this test interacts resides.
60--
61
62   REMOTE_NODE : RTEMS.UNSIGNED32;
63
64--
65--  The number of events to process per dot printed out.
66--
67
68   PER_DOT : constant RTEMS.UNSIGNED32 := 100;
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--  STOP_TEST_TSR
84--
85--  DESCRIPTION:
86--
87--  This subprogram is a TSR which sets the "stop test" flag.
88--
89 
90   procedure STOP_TEST_TSR (
91      IGNORED1 : in     RTEMS.ID;
92      IGNORED2 : in     RTEMS.ADDRESS
93   );
94
95--
96--  TEST_TASK
97--
98--  DESCRIPTION:
99--
100--  This is the body of the RTEMS tasks which constitute this test.
101--
102
103   procedure TEST_TASK (
104      ARGUMENT : in     RTEMS.TASK_ARGUMENT
105   );
106
107--
108--  This is the Driver Address Table for this test.
109--
110
111   DEVICE_DRIVERS : aliased RTEMS.DRIVER_ADDRESS_TABLE( 1 .. 1 ) :=
112   (1=>
113      (
114        CLOCK_DRIVER.INITIALIZE'ACCESS,              -- Initialization
115        RTEMS.NO_DRIVER_ENTRY,                       -- Open
116        RTEMS.NO_DRIVER_ENTRY,                       -- Close
117        RTEMS.NO_DRIVER_ENTRY,                       -- Read
118        RTEMS.NO_DRIVER_ENTRY,                       -- Write
119        RTEMS.NO_DRIVER_ENTRY                        -- Control
120      )
121   );
122
123--
124--  This is the Initialization Tasks Table for this test.
125--
126
127   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) :=
128   (1=>
129     (
130       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
131       2048,                                          -- stack size
132       1,                                             -- priority
133       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
134       MPTEST.INIT'ACCESS,                            -- entry point
135       RTEMS.NO_PREEMPT,                              -- initial mode
136       0                                              -- argument list
137     )
138   );
139
140----------------------------------------------------------------------------
141----------------------------------------------------------------------------
142--                             BEGIN SUBPACKAGE                           --
143----------------------------------------------------------------------------
144----------------------------------------------------------------------------
145
146   --
147   --  MPTEST.PER_NODE_CONFIGURATION / SPECIFICATION
148   --
149   --  DESCRIPTION:
150   --
151   --  This package is the specification for the subpackage
152   --  which will define the per node configuration parameters.
153   --
154   
155   package PER_NODE_CONFIGURATION is
156
157   --
158   --  LOCAL_NODE_NUMBER
159   --
160   --  DESCRIPTION:
161   --
162   --  This function returns the node number for this node.
163   --
164
165      function LOCAL_NODE_NUMBER
166      return RTEMS.UNSIGNED32;
167 
168      pragma INLINE ( LOCAL_NODE_NUMBER );
169
170   end PER_NODE_CONFIGURATION;
171 
172----------------------------------------------------------------------------
173----------------------------------------------------------------------------
174--                              END SUBPACKAGE                            --
175----------------------------------------------------------------------------
176----------------------------------------------------------------------------
177
178--
179--  This is the Multiprocessor Configuration Table for this test.
180--
181
182   MULTIPROCESSING_CONFIGURATION : aliased RTEMS.MULTIPROCESSING_TABLE := (
183      MPTEST.PER_NODE_CONFIGURATION.LOCAL_NODE_NUMBER,
184      2,                         -- maximum # nodes in system
185      32,                        -- maximum # global objects
186      32                         -- maximum # proxies
187    );
188
189--
190--  This is the Configuration Table for this test.
191--
192
193   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
194      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
195      64 * 1024,                 -- executive RAM size
196      10,                        -- maximum # tasks
197      1,                         -- maximum # timers
198      2,                         -- maximum # semaphores
199      0,                         -- maximum # message queues
200      0,                         -- maximum # messages
201      0,                         -- maximum # partitions
202      0,                         -- maximum # regions
203      0,                         -- maximum # dp memory areas
204      0,                         -- maximum # periods
205      0,                         -- maximum # user extensions
206      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
207      50                         -- # ticks in a timeslice
208  );
209
210end MPTEST;
Note: See TracBrowser for help on using the repository browser.