source: rtems/c/src/ada-tests/sptests/sp17/sptest.ads @ f619250

4.115
Last change on this file since f619250 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1--
2--  SPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 17 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.com/license/LICENSE.
19--
20
21with RTEMS;
22with RTEMS.TASKS;
23
24package SPTEST is
25
26--
27--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
28--  by this test.
29--
30
31   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID;
32   TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME;
33
34--
35--  The following is set to TRUE by TASK_2 when it preempts TASK_1.
36--
37
38   TASK_2_PREEMPTED : STANDARD.BOOLEAN;
39
40--
41--  INIT
42--
43--  DESCRIPTION:
44--
45--  This RTEMS task initializes the application.
46--
47
48   procedure INIT (
49      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
50   );
51   pragma Convention (C, INIT);
52
53--
54--  PROCESS_ASR
55--
56--  DESCRIPTION:
57--
58--  This subprogram is the ASR for TASK_1.
59--
60
61   procedure PROCESS_ASR (
62      SIGNALS : in     RTEMS.SIGNAL_SET
63   );
64   pragma Convention (C, PROCESS_ASR);
65
66--
67--  TASK_1
68--
69--  DESCRIPTION:
70--
71--  This RTEMS task tests that when the transfer from the task
72--  to the ASR (and vice-versa) is performed, that the new mode
73--  is taken into account.  If this occurs, then TASK_2 will be
74--  able to preempt upon completion of the ASR of TASK_1.
75--
76
77   procedure TASK_1 (
78      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
79   );
80   pragma Convention (C, TASK_1);
81
82--
83--  TASK_2
84--
85--  DESCRIPTION:
86--
87--  This RTEMS task is designed to preempt TASK_1.
88--
89
90   procedure TASK_2 (
91      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
92   );
93   pragma Convention (C, TASK_2);
94
95end SPTEST;
Note: See TracBrowser for help on using the repository browser.