1 | -- |
---|
2 | -- TMTEST / SPECIFICATION |
---|
3 | -- |
---|
4 | -- DESCRIPTION: |
---|
5 | -- |
---|
6 | -- This package is the specification for Test 24 of the RTEMS |
---|
7 | -- Timing 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 TIMER_DRIVER; |
---|
25 | with RTEMS; |
---|
26 | |
---|
27 | package TMTEST 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 | -- This variable is used to determine which task should |
---|
39 | -- start the timer and which task should stop the timer |
---|
40 | -- and report the execution time. |
---|
41 | -- |
---|
42 | |
---|
43 | TASK_COUNT : RTEMS.UNSIGNED32; |
---|
44 | |
---|
45 | -- |
---|
46 | -- This variable contains the execution time required of the |
---|
47 | -- loop used to execute the directive. |
---|
48 | -- |
---|
49 | |
---|
50 | OVERHEAD : RTEMS.UNSIGNED32; |
---|
51 | |
---|
52 | -- |
---|
53 | -- The following variable is set to the execution time returned |
---|
54 | -- by the timer. |
---|
55 | -- |
---|
56 | |
---|
57 | END_TIME : RTEMS.UNSIGNED32; |
---|
58 | |
---|
59 | -- |
---|
60 | -- INIT |
---|
61 | -- |
---|
62 | -- DESCRIPTION: |
---|
63 | -- |
---|
64 | -- This RTEMS task initializes the application. |
---|
65 | -- |
---|
66 | |
---|
67 | procedure INIT ( |
---|
68 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
69 | ); |
---|
70 | |
---|
71 | -- |
---|
72 | -- HIGH_TASK |
---|
73 | -- |
---|
74 | -- DESCRIPTION: |
---|
75 | -- |
---|
76 | -- This RTEMS task is responsible for measuring and reporting the |
---|
77 | -- execution time for an invocation of TASK_WAKE_AFTER which |
---|
78 | -- attempts to yield but does not result in a context switch. |
---|
79 | -- |
---|
80 | |
---|
81 | procedure HIGH_TASK ( |
---|
82 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
83 | ); |
---|
84 | |
---|
85 | -- |
---|
86 | -- TASKS |
---|
87 | -- |
---|
88 | -- DESCRIPTION: |
---|
89 | -- |
---|
90 | -- These RTEMS tasks are responsible for measuring and reporting the |
---|
91 | -- execution time for an invocation of TASK_WAKE_AFTER which |
---|
92 | -- attempts to yield but does result in a context switch. |
---|
93 | -- |
---|
94 | |
---|
95 | procedure TASKS ( |
---|
96 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
97 | ); |
---|
98 | |
---|
99 | end TMTEST; |
---|