source: rtems/c/src/ada-tests/mptests/mp04/mptest.ads @ 8a0e8da

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