source: rtems/c/src/ada-tests/mptests/mp01/mptest.ads @ edeed26

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