1 | -- |
---|
2 | -- SPTEST / SPECIFICATION |
---|
3 | -- |
---|
4 | -- DESCRIPTION: |
---|
5 | -- |
---|
6 | -- This package is the specification for Test 23 of the RTEMS |
---|
7 | -- Single Processor Test Suite. |
---|
8 | -- |
---|
9 | -- DEPENDENCIES: |
---|
10 | -- |
---|
11 | -- |
---|
12 | -- |
---|
13 | -- COPYRIGHT (c) 1989-2011. |
---|
14 | -- On-Line Applications Research Corporation (OAR). |
---|
15 | -- |
---|
16 | -- The license and distribution terms for this file may in |
---|
17 | -- the file LICENSE in this distribution or at |
---|
18 | -- http://www.rtems.org/license/LICENSE. |
---|
19 | -- |
---|
20 | |
---|
21 | with RTEMS; |
---|
22 | with RTEMS.TASKS; |
---|
23 | with SYSTEM; |
---|
24 | with System.Storage_Elements; |
---|
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 .. 1 ) of RTEMS.ID; |
---|
34 | TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 1 ) of RTEMS.NAME; |
---|
35 | |
---|
36 | -- |
---|
37 | -- These arrays contain the IDs and NAMEs of all RTEMS ports created |
---|
38 | -- by this test. |
---|
39 | -- |
---|
40 | |
---|
41 | PORT_ID : array ( RTEMS.UNSIGNED32 range 1 .. 1 ) of RTEMS.ID; |
---|
42 | PORT_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 1 ) of RTEMS.NAME; |
---|
43 | |
---|
44 | -- |
---|
45 | -- The following area defines a memory area to be used as the |
---|
46 | -- internal address space of the port. |
---|
47 | -- |
---|
48 | |
---|
49 | INTERNAL_PORT_AREA_ADDRESS : constant System.Address := |
---|
50 | System.Storage_Elements.To_Address(16#00001000#); |
---|
51 | |
---|
52 | INTERNAL_PORT_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 ) |
---|
53 | of RTEMS.UNSIGNED8; |
---|
54 | for INTERNAL_PORT_AREA'Address use INTERNAL_PORT_AREA_ADDRESS; |
---|
55 | |
---|
56 | -- |
---|
57 | -- The following area defines a memory area to be used as the |
---|
58 | -- external address space of the port. |
---|
59 | -- |
---|
60 | |
---|
61 | EXTERNAL_PORT_AREA_ADDRESS : constant System.Address := |
---|
62 | System.Storage_Elements.To_Address(16#00002000#); |
---|
63 | |
---|
64 | EXTERNAL_PORT_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 ) |
---|
65 | of RTEMS.UNSIGNED8; |
---|
66 | for EXTERNAL_PORT_AREA'Address use EXTERNAL_PORT_AREA_ADDRESS; |
---|
67 | |
---|
68 | -- |
---|
69 | -- The following area defines a memory area to be used for |
---|
70 | -- addresses which are below the address space of the port. |
---|
71 | -- |
---|
72 | |
---|
73 | BELOW_PORT_AREA_ADDRESS : constant System.Address := |
---|
74 | System.Storage_Elements.To_Address(16#00000500#); |
---|
75 | |
---|
76 | BELOW_PORT_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 ) |
---|
77 | of RTEMS.UNSIGNED8; |
---|
78 | for BELOW_PORT_AREA'Address use BELOW_PORT_AREA_ADDRESS; |
---|
79 | |
---|
80 | -- |
---|
81 | -- The following area defines a memory area to be used for |
---|
82 | -- addresses which are above the address space of the port. |
---|
83 | -- |
---|
84 | |
---|
85 | ABOVE_PORT_AREA_ADDRESS : constant System.Address := |
---|
86 | System.Storage_Elements.To_Address(16#00003000#); |
---|
87 | |
---|
88 | ABOVE_PORT_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 ) |
---|
89 | of RTEMS.UNSIGNED8; |
---|
90 | for ABOVE_PORT_AREA'Address use ABOVE_PORT_AREA_ADDRESS; |
---|
91 | |
---|
92 | -- |
---|
93 | -- INIT |
---|
94 | -- |
---|
95 | -- DESCRIPTION: |
---|
96 | -- |
---|
97 | -- This RTEMS task initializes the application. |
---|
98 | -- |
---|
99 | |
---|
100 | procedure INIT ( |
---|
101 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
102 | ); |
---|
103 | pragma Convention (C, INIT); |
---|
104 | |
---|
105 | -- |
---|
106 | -- TASK_1 |
---|
107 | -- |
---|
108 | -- DESCRIPTION: |
---|
109 | -- |
---|
110 | -- This RTEMS task tests the Dual Ported Memory Manager. |
---|
111 | -- |
---|
112 | |
---|
113 | procedure TASK_1 ( |
---|
114 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
115 | ); |
---|
116 | pragma Convention (C, TASK_1); |
---|
117 | |
---|
118 | end SPTEST; |
---|