source: rtems/c/src/ada-tests/sptests/sp25/sptest.ads @ f3f06f79

4.104.114.84.95
Last change on this file since f3f06f79 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: 4.3 KB
Line 
1--
2--  SPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 25 of the RTEMS
7--  Single Processor 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 RTEMS;
26
27package SPTEST 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 .. 2 ) of RTEMS.ID;
35   TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME;
36
37--
38--  These arrays contain the IDs and NAMEs of all RTEMS regions created
39--  by this test.
40--
41
42   REGION_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID;
43   REGION_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME;
44
45--
46--  The following constant defines the priority of most of the
47--  RTEMS tasks in this test.  This allows one of the tasks to
48--  easily set itself to a higher priority than the rest.
49--
50
51   BASE_PRIORITY : constant RTEMS.TASK_PRIORITY := 140;
52
53--
54--  These arrays define the memory areas used for the regions in
55--  this test.
56--
57
58   AREA_1 : array ( RTEMS.UNSIGNED32 range 0 .. 64000 ) of RTEMS.UNSIGNED8;
59   for AREA_1'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
60
61--
62--  INIT
63--
64--  DESCRIPTION:
65--
66--  This RTEMS task initializes the application.
67--
68
69   procedure INIT (
70      ARGUMENT : in     RTEMS.TASK_ARGUMENT
71   );
72
73--
74--  PUT_ADDRESS_FROM_AREA_1
75--
76--  DESCRIPTION:
77--
78--  This subprogram prints the offset of the address TO_BE_PRINTED
79--  from the first byte of AREA_1.
80--
81--  NOTE:
82--
83--  This subprogram is used because the actual address of AREA_1
84--  varies based upon the size of the executable, the target board,
85--  and the target processor.
86--
87
88   procedure PUT_ADDRESS_FROM_AREA_1 (
89      TO_BE_PRINTED : in     RTEMS.ADDRESS
90   );
91
92--
93--  TASK_1
94--
95--  DESCRIPTION:
96--
97--  This RTEMS task tests the Region Manager.
98--
99
100   procedure TASK_1 (
101      ARGUMENT : in     RTEMS.TASK_ARGUMENT
102   );
103
104--
105--  This is the Driver Address Table for this test.
106--
107
108   DEVICE_DRIVERS : aliased RTEMS.DRIVER_ADDRESS_TABLE( 1 .. 1 ) :=
109   (1=>
110      (
111        CLOCK_DRIVER.INITIALIZE'ACCESS,              -- Initialization
112        RTEMS.NO_DRIVER_ENTRY,                       -- Open
113        RTEMS.NO_DRIVER_ENTRY,                       -- Close
114        RTEMS.NO_DRIVER_ENTRY,                       -- Read
115        RTEMS.NO_DRIVER_ENTRY,                       -- Write
116        RTEMS.NO_DRIVER_ENTRY                        -- Control
117      )
118   );
119
120--
121--  This is the Initialization Tasks Table for this test.
122--
123
124   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) :=
125   (1=>
126     (
127       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
128       2048,                                          -- stack size
129       1,                                             -- priority
130       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
131       SPTEST.INIT'ACCESS,                            -- entry point
132       RTEMS.NO_PREEMPT,                              -- initial mode
133       0                                              -- argument list
134     )
135   );
136
137--
138--  This is the Configuration Table for this test.
139--
140
141   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
142      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
143      64 * 1024,                 -- executive RAM size
144      10,                        -- maximum # tasks
145      0,                         -- maximum # timers
146      0,                         -- maximum # semaphores
147      0,                         -- maximum # message queues
148      0,                         -- maximum # messages
149      0,                         -- maximum # partitions
150      1,                         -- maximum # regions
151      0,                         -- maximum # dp memory areas
152      0,                         -- maximum # periods
153      0,                         -- maximum # user extensions
154      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
155      100                        -- # ticks in a timeslice
156  );
157
158end SPTEST;
Note: See TracBrowser for help on using the repository browser.