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 | |
---|
24 | with RTEMS; |
---|
25 | |
---|
26 | package SPTEST is |
---|
27 | |
---|
28 | -- |
---|
29 | -- These arrays contain the IDs and NAMEs of all RTEMS tasks created |
---|
30 | -- by this test. |
---|
31 | -- |
---|
32 | |
---|
33 | TASK_ID : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID; |
---|
34 | TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME; |
---|
35 | |
---|
36 | -- |
---|
37 | -- These arrays contain the IDs and NAMEs of all RTEMS regions created |
---|
38 | -- by this test. |
---|
39 | -- |
---|
40 | |
---|
41 | REGION_ID : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID; |
---|
42 | REGION_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME; |
---|
43 | |
---|
44 | -- |
---|
45 | -- The following constant defines the priority of most of the |
---|
46 | -- RTEMS tasks in this test. This allows one of the tasks to |
---|
47 | -- easily set itself to a higher priority than the rest. |
---|
48 | -- |
---|
49 | |
---|
50 | BASE_PRIORITY : constant RTEMS.TASK_PRIORITY := 140; |
---|
51 | |
---|
52 | -- |
---|
53 | -- These arrays define the memory areas used for the regions in |
---|
54 | -- this test. |
---|
55 | -- |
---|
56 | |
---|
57 | AREA_1 : array ( RTEMS.UNSIGNED32 range 0 .. 64000 ) of RTEMS.UNSIGNED8; |
---|
58 | for AREA_1'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT; |
---|
59 | |
---|
60 | -- |
---|
61 | -- INIT |
---|
62 | -- |
---|
63 | -- DESCRIPTION: |
---|
64 | -- |
---|
65 | -- This RTEMS task initializes the application. |
---|
66 | -- |
---|
67 | |
---|
68 | procedure INIT ( |
---|
69 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
70 | ); |
---|
71 | |
---|
72 | -- |
---|
73 | -- PUT_ADDRESS_FROM_AREA_1 |
---|
74 | -- |
---|
75 | -- DESCRIPTION: |
---|
76 | -- |
---|
77 | -- This subprogram prints the offset of the address TO_BE_PRINTED |
---|
78 | -- from the first byte of AREA_1. |
---|
79 | -- |
---|
80 | -- NOTE: |
---|
81 | -- |
---|
82 | -- This subprogram is used because the actual address of AREA_1 |
---|
83 | -- varies based upon the size of the executable, the target board, |
---|
84 | -- and the target processor. |
---|
85 | -- |
---|
86 | |
---|
87 | procedure PUT_ADDRESS_FROM_AREA_1 ( |
---|
88 | TO_BE_PRINTED : in RTEMS.ADDRESS |
---|
89 | ); |
---|
90 | |
---|
91 | -- |
---|
92 | -- TASK_1 |
---|
93 | -- |
---|
94 | -- DESCRIPTION: |
---|
95 | -- |
---|
96 | -- This RTEMS task tests the Region Manager. |
---|
97 | -- |
---|
98 | |
---|
99 | procedure TASK_1 ( |
---|
100 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
101 | ); |
---|
102 | |
---|
103 | end SPTEST; |
---|