[6d4e604b] | 1 | -- |
---|
| 2 | -- TMTEST / SPECIFICATION |
---|
| 3 | -- |
---|
| 4 | -- DESCRIPTION: |
---|
| 5 | -- |
---|
| 6 | -- This package is the specification for Test 6 of the RTEMS |
---|
| 7 | -- Timing Test Suite. |
---|
| 8 | -- |
---|
| 9 | -- DEPENDENCIES: |
---|
| 10 | -- |
---|
| 11 | -- |
---|
| 12 | -- |
---|
[3c4d8cd1] | 13 | -- COPYRIGHT (c) 1989-2011. |
---|
[6d4e604b] | 14 | -- On-Line Applications Research Corporation (OAR). |
---|
| 15 | -- |
---|
[bf9ae83] | 16 | -- The license and distribution terms for this file may in |
---|
| 17 | -- the file LICENSE in this distribution or at |
---|
[c499856] | 18 | -- http://www.rtems.org/license/LICENSE. |
---|
[6d4e604b] | 19 | -- |
---|
| 20 | |
---|
| 21 | with TIME_TEST_SUPPORT; |
---|
| 22 | with RTEMS; |
---|
[3c4d8cd1] | 23 | with RTEMS.TASKS; |
---|
[6d4e604b] | 24 | |
---|
| 25 | package TMTEST is |
---|
| 26 | |
---|
| 27 | -- |
---|
| 28 | -- This array contains the IDs of all RTEMS tasks created by this test. |
---|
| 29 | -- |
---|
| 30 | |
---|
| 31 | TASK_ID : array ( RTEMS.UNSIGNED32 |
---|
| 32 | range 0 .. TIME_TEST_SUPPORT.OPERATION_COUNT ) of RTEMS.ID; |
---|
| 33 | |
---|
| 34 | -- |
---|
| 35 | -- This variable is used to determine which restart of TASK_1 will start |
---|
| 36 | -- timer and which will stop the timer and report the execution time. |
---|
| 37 | -- |
---|
| 38 | |
---|
| 39 | TASK_RESTARTED : RTEMS.UNSIGNED32; |
---|
| 40 | |
---|
| 41 | -- |
---|
| 42 | -- The following variable is set to the execution time returned |
---|
| 43 | -- by the timer. |
---|
| 44 | -- |
---|
| 45 | |
---|
| 46 | END_TIME : RTEMS.UNSIGNED32; |
---|
| 47 | |
---|
| 48 | -- |
---|
| 49 | -- INIT |
---|
| 50 | -- |
---|
| 51 | -- DESCRIPTION: |
---|
| 52 | -- |
---|
| 53 | -- This RTEMS task initializes the application. |
---|
| 54 | -- |
---|
| 55 | |
---|
| 56 | procedure INIT ( |
---|
[3c4d8cd1] | 57 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
[6d4e604b] | 58 | ); |
---|
[d43dd82] | 59 | pragma Convention (C, INIT); |
---|
[6d4e604b] | 60 | |
---|
| 61 | -- |
---|
| 62 | -- TEST_INIT |
---|
| 63 | -- |
---|
| 64 | -- DESCRIPTION: |
---|
| 65 | -- |
---|
| 66 | -- This subprogram performs test initialization. |
---|
| 67 | -- |
---|
| 68 | |
---|
| 69 | procedure TEST_INIT; |
---|
| 70 | |
---|
| 71 | -- |
---|
| 72 | -- TASK_1 |
---|
| 73 | -- |
---|
| 74 | -- DESCRIPTION: |
---|
| 75 | -- |
---|
| 76 | -- This RTEMS task is responsible for measuring and reporting the |
---|
| 77 | -- following directive execution times: |
---|
| 78 | -- |
---|
| 79 | -- + TASK_RESTART of SELF |
---|
| 80 | -- + TASK_SUSPEND of another task with no context switch |
---|
| 81 | -- + TASK_RESUME with no preemption |
---|
| 82 | -- + TASK_DELETE of another task |
---|
| 83 | -- |
---|
| 84 | |
---|
| 85 | procedure TASK_1 ( |
---|
[3c4d8cd1] | 86 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
[6d4e604b] | 87 | ); |
---|
[d43dd82] | 88 | pragma Convention (C, TASK_1); |
---|
[6d4e604b] | 89 | |
---|
| 90 | -- |
---|
| 91 | -- NULL_TASK |
---|
| 92 | -- |
---|
| 93 | -- DESCRIPTION: |
---|
| 94 | -- |
---|
| 95 | -- This RTEMS task has no operations. It is used to have |
---|
| 96 | -- tasks to perform directives upon. |
---|
| 97 | -- |
---|
| 98 | |
---|
| 99 | procedure NULL_TASK ( |
---|
[3c4d8cd1] | 100 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
[6d4e604b] | 101 | ); |
---|
[d43dd82] | 102 | pragma Convention (C, NULL_TASK); |
---|
[6d4e604b] | 103 | |
---|
| 104 | end TMTEST; |
---|