source: rtems/c/src/ada-tests/mptests/mp04/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: 5.1 KB
Line 
1--
2--  MPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 4 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--  This variable contains the ID of the remote task with which this
40--  test interacts.
41--
42
43   REMOTE_TID  : RTEMS.ID;
44
45--
46--  This variable contains the node on which the remote task with which
47--  this test interacts resides.
48--
49
50   REMOTE_NODE : RTEMS.UNSIGNED32;
51
52--
53--  INIT
54--
55--  DESCRIPTION:
56--
57--  This RTEMS task initializes the application.
58--
59
60   procedure INIT (
61      ARGUMENT : in     RTEMS.TASK_ARGUMENT
62   );
63
64--
65--  TEST_TASK
66--
67--  DESCRIPTION:
68--
69--  This is the body of the RTEMS tasks which constitute this test.
70--
71
72   procedure TEST_TASK (
73      ARGUMENT : in     RTEMS.TASK_ARGUMENT
74   );
75
76--
77--  This is the Driver Address Table for this test.
78--
79
80   DEVICE_DRIVERS : aliased RTEMS.DRIVER_ADDRESS_TABLE( 1 .. 1 ) :=
81   (1=>
82      (
83        CLOCK_DRIVER.INITIALIZE'ACCESS,              -- Initialization
84        RTEMS.NO_DRIVER_ENTRY,                       -- Open
85        RTEMS.NO_DRIVER_ENTRY,                       -- Close
86        RTEMS.NO_DRIVER_ENTRY,                       -- Read
87        RTEMS.NO_DRIVER_ENTRY,                       -- Write
88        RTEMS.NO_DRIVER_ENTRY                        -- Control
89      )
90   );
91
92--
93--  This is the Initialization Tasks Table for this test.
94--
95
96   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) :=
97   (1=>
98     (
99       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
100       2048,                                          -- stack size
101       1,                                             -- priority
102       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
103       MPTEST.INIT'ACCESS,                            -- entry point
104       RTEMS.NO_PREEMPT,                              -- initial mode
105       0                                              -- argument list
106     )
107   );
108
109----------------------------------------------------------------------------
110----------------------------------------------------------------------------
111--                             BEGIN SUBPACKAGE                           --
112----------------------------------------------------------------------------
113----------------------------------------------------------------------------
114
115   --
116   --  MPTEST.PER_NODE_CONFIGURATION / SPECIFICATION
117   --
118   --  DESCRIPTION:
119   --
120   --  This package is the specification for the subpackage
121   --  which will define the per node configuration parameters.
122   --
123   
124   package PER_NODE_CONFIGURATION is
125
126   --
127   --  LOCAL_NODE_NUMBER
128   --
129   --  DESCRIPTION:
130   --
131   --  This function returns the node number for this node.
132   --
133
134      function LOCAL_NODE_NUMBER
135      return RTEMS.UNSIGNED32;
136 
137      pragma INLINE ( LOCAL_NODE_NUMBER );
138
139   end PER_NODE_CONFIGURATION;
140 
141----------------------------------------------------------------------------
142----------------------------------------------------------------------------
143--                              END SUBPACKAGE                            --
144----------------------------------------------------------------------------
145----------------------------------------------------------------------------
146
147--
148--  This is the Multiprocessor Configuration Table for this test.
149--
150
151   MULTIPROCESSING_CONFIGURATION : aliased RTEMS.MULTIPROCESSING_TABLE := (
152      MPTEST.PER_NODE_CONFIGURATION.LOCAL_NODE_NUMBER,
153      2,                         -- maximum # nodes in system
154      32,                        -- maximum # global objects
155      32                         -- maximum # proxies
156    );
157
158--
159--  This is the Configuration Table for this test.
160--
161
162   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
163      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
164      64 * 1024,                 -- executive RAM size
165      10,                        -- maximum # tasks
166      1,                         -- maximum # timers
167      0,                         -- maximum # semaphores
168      0,                         -- maximum # message queues
169      0,                         -- maximum # messages
170      0,                         -- maximum # partitions
171      0,                         -- maximum # regions
172      0,                         -- maximum # dp memory areas
173      0,                         -- maximum # periods
174      0,                         -- maximum # user extensions
175      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
176      50                         -- # ticks in a timeslice
177  );
178
179end MPTEST;
Note: See TracBrowser for help on using the repository browser.