1 | -- |
---|
2 | -- SPTEST / SPECIFICATION |
---|
3 | -- |
---|
4 | -- DESCRIPTION: |
---|
5 | -- |
---|
6 | -- This package is the specification for Test 19 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 CLOCK_DRIVER; |
---|
25 | with RTEMS; |
---|
26 | |
---|
27 | package 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 .. 6 ) of RTEMS.ID; |
---|
35 | TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 6 ) of RTEMS.NAME; |
---|
36 | |
---|
37 | -- |
---|
38 | -- This array contains the floating point factors used by the |
---|
39 | -- floating point tasks in this test. |
---|
40 | -- |
---|
41 | |
---|
42 | FP_FACTORS : array ( RTEMS.UNSIGNED32 range 0 .. 9 ) of FLOAT; |
---|
43 | |
---|
44 | -- |
---|
45 | -- This array contains the integer factors used by the |
---|
46 | -- integer tasks in this test. |
---|
47 | -- |
---|
48 | |
---|
49 | INTEGER_FACTORS : array ( RTEMS.UNSIGNED32 range 0 .. 9 ) of |
---|
50 | RTEMS.UNSIGNED32; |
---|
51 | |
---|
52 | -- |
---|
53 | -- INIT |
---|
54 | -- |
---|
55 | -- DESCRIPTION: |
---|
56 | -- |
---|
57 | -- This RTEMS task initializes the application. |
---|
58 | -- |
---|
59 | |
---|
60 | procedure INIT ( |
---|
61 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
62 | ); |
---|
63 | |
---|
64 | -- |
---|
65 | -- FIRST_FP_TASK |
---|
66 | -- |
---|
67 | -- DESCRIPTION: |
---|
68 | -- |
---|
69 | -- This RTEMS task tests the restart and deletion of floating point tasks. |
---|
70 | -- |
---|
71 | |
---|
72 | procedure FIRST_FP_TASK ( |
---|
73 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
74 | ); |
---|
75 | |
---|
76 | -- |
---|
77 | -- FP_TASK |
---|
78 | -- |
---|
79 | -- DESCRIPTION: |
---|
80 | -- |
---|
81 | -- This RTEMS task tests the basic capabilities of a floating point |
---|
82 | -- task. |
---|
83 | -- |
---|
84 | |
---|
85 | procedure FP_TASK ( |
---|
86 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
87 | ); |
---|
88 | |
---|
89 | -- |
---|
90 | -- TASK_1 |
---|
91 | -- |
---|
92 | -- DESCRIPTION: |
---|
93 | -- |
---|
94 | -- This RTEMS task provides a non-floating point task to test |
---|
95 | -- that an application can utilize a mixture of floating point |
---|
96 | -- and non-floating point tasks. |
---|
97 | -- |
---|
98 | |
---|
99 | procedure TASK_1 ( |
---|
100 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
101 | ); |
---|
102 | |
---|
103 | -- |
---|
104 | -- This is the Driver Address Table for this test. |
---|
105 | -- |
---|
106 | |
---|
107 | DEVICE_DRIVERS : aliased RTEMS.DRIVER_ADDRESS_TABLE( 1 .. 1 ) := |
---|
108 | (1=> |
---|
109 | ( |
---|
110 | CLOCK_DRIVER.INITIALIZE'ACCESS, -- Initialization |
---|
111 | RTEMS.NO_DRIVER_ENTRY, -- Open |
---|
112 | RTEMS.NO_DRIVER_ENTRY, -- Close |
---|
113 | RTEMS.NO_DRIVER_ENTRY, -- Read |
---|
114 | RTEMS.NO_DRIVER_ENTRY, -- Write |
---|
115 | RTEMS.NO_DRIVER_ENTRY -- Control |
---|
116 | ) |
---|
117 | ); |
---|
118 | |
---|
119 | -- |
---|
120 | -- This is the Initialization Tasks Table for this test. |
---|
121 | -- |
---|
122 | |
---|
123 | INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) := |
---|
124 | (1=> |
---|
125 | ( |
---|
126 | RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ), -- task name |
---|
127 | 2048, -- stack size |
---|
128 | 1, -- priority |
---|
129 | RTEMS.DEFAULT_ATTRIBUTES, -- attributes |
---|
130 | SPTEST.INIT'ACCESS, -- entry point |
---|
131 | RTEMS.NO_PREEMPT, -- initial mode |
---|
132 | 0 -- argument list |
---|
133 | ) |
---|
134 | ); |
---|
135 | |
---|
136 | -- |
---|
137 | -- This is the Configuration Table for this test. |
---|
138 | -- |
---|
139 | |
---|
140 | CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := ( |
---|
141 | RTEMS.NULL_ADDRESS, -- will be replaced by BSP |
---|
142 | 64 * 1024, -- executive RAM size |
---|
143 | 10, -- maximum # tasks |
---|
144 | 0, -- maximum # timers |
---|
145 | 0, -- maximum # semaphores |
---|
146 | 0, -- maximum # message queues |
---|
147 | 0, -- maximum # messages |
---|
148 | 0, -- maximum # partitions |
---|
149 | 0, -- maximum # regions |
---|
150 | 0, -- maximum # dp memory areas |
---|
151 | 0, -- maximum # periods |
---|
152 | 0, -- maximum # user extensions |
---|
153 | RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick |
---|
154 | 50 -- # ticks in a timeslice |
---|
155 | ); |
---|
156 | |
---|
157 | end SPTEST; |
---|