1 ------------------------------------------------------------------------------
3 -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
5 -- SYSTEM.INTERRUPT_MANAGEMENT.OPERATIONS --
10 -- Copyright (C) 1992-2001 Free Software Foundation, Inc. --
12 -- GNARL is free software; you can redistribute it and/or modify it under --
13 -- terms of the GNU General Public License as published by the Free Soft- --
14 -- ware Foundation; either version 2, or (at your option) any later ver- --
15 -- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
16 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
17 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
18 -- for more details. You should have received a copy of the GNU General --
19 -- Public License distributed with GNARL; see file COPYING. If not, write --
20 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
21 -- MA 02111-1307, USA. --
23 -- As a special exception, if other files instantiate generics from this --
24 -- unit, or you link this unit with other files to produce an executable, --
25 -- this unit does not by itself cause the resulting executable to be --
26 -- covered by the GNU General Public License. This exception does not --
27 -- however invalidate any other reasons why the executable file might be --
28 -- covered by the GNU Public License. --
30 -- GNARL was developed by the GNARL team at Florida State University. It is --
31 -- now maintained by Ada Core Technologies Inc. in cooperation with Florida --
32 -- State University (http://www.gnat.com). --
34 ------------------------------------------------------------------------------
36 -- This is a NO tasking version of this package.
38 package body System
.Interrupt_Management
.Operations
is
40 -- Turn off warnings since many unused formals
42 pragma Warnings
(Off
);
44 ----------------------------
45 -- Thread_Block_Interrupt --
46 ----------------------------
48 procedure Thread_Block_Interrupt
49 (Interrupt
: Interrupt_ID
)
53 end Thread_Block_Interrupt
;
55 ------------------------------
56 -- Thread_Unblock_Interrupt --
57 ------------------------------
59 procedure Thread_Unblock_Interrupt
60 (Interrupt
: Interrupt_ID
)
64 end Thread_Unblock_Interrupt
;
66 ------------------------
67 -- Set_Interrupt_Mask --
68 ------------------------
70 procedure Set_Interrupt_Mask
(Mask
: access Interrupt_Mask
) is
73 end Set_Interrupt_Mask
;
75 procedure Set_Interrupt_Mask
76 (Mask
: access Interrupt_Mask
;
77 OMask
: access Interrupt_Mask
) is
80 end Set_Interrupt_Mask
;
82 ------------------------
83 -- Get_Interrupt_Mask --
84 ------------------------
86 procedure Get_Interrupt_Mask
(Mask
: access Interrupt_Mask
) is
89 end Get_Interrupt_Mask
;
95 function Interrupt_Wait
96 (Mask
: access Interrupt_Mask
)
103 ----------------------------
104 -- Install_Default_Action --
105 ----------------------------
107 procedure Install_Default_Action
(Interrupt
: Interrupt_ID
) is
110 end Install_Default_Action
;
112 ---------------------------
113 -- Install_Ignore_Action --
114 ---------------------------
116 procedure Install_Ignore_Action
(Interrupt
: Interrupt_ID
) is
119 end Install_Ignore_Action
;
121 -------------------------
122 -- Fill_Interrupt_Mask --
123 -------------------------
125 procedure Fill_Interrupt_Mask
(Mask
: access Interrupt_Mask
) is
128 end Fill_Interrupt_Mask
;
130 --------------------------
131 -- Empty_Interrupt_Mask --
132 --------------------------
134 procedure Empty_Interrupt_Mask
(Mask
: access Interrupt_Mask
) is
137 end Empty_Interrupt_Mask
;
139 -----------------------
140 -- Add_To_Sigal_Mask --
141 -----------------------
143 procedure Add_To_Interrupt_Mask
144 (Mask
: access Interrupt_Mask
;
145 Interrupt
: Interrupt_ID
)
149 end Add_To_Interrupt_Mask
;
151 --------------------------------
152 -- Delete_From_Interrupt_Mask --
153 --------------------------------
155 procedure Delete_From_Interrupt_Mask
156 (Mask
: access Interrupt_Mask
;
157 Interrupt
: Interrupt_ID
)
161 end Delete_From_Interrupt_Mask
;
168 (Mask
: access Interrupt_Mask
;
169 Interrupt
: Interrupt_ID
) return Boolean
175 -------------------------
176 -- Copy_Interrupt_Mask --
177 -------------------------
179 procedure Copy_Interrupt_Mask
180 (X
: out Interrupt_Mask
;
185 end Copy_Interrupt_Mask
;
187 -------------------------
188 -- Interrupt_Self_Process --
189 -------------------------
191 procedure Interrupt_Self_Process
(Interrupt
: Interrupt_ID
) is
194 end Interrupt_Self_Process
;
196 end System
.Interrupt_Management
.Operations
;