summaryrefslogtreecommitdiff
path: root/gcc/ada/s-intman-irix-athread.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/s-intman-irix-athread.adb')
-rw-r--r--gcc/ada/s-intman-irix-athread.adb45
1 files changed, 23 insertions, 22 deletions
diff --git a/gcc/ada/s-intman-irix-athread.adb b/gcc/ada/s-intman-irix-athread.adb
index 71cc0cb7aa7..71b20fc6dbd 100644
--- a/gcc/ada/s-intman-irix-athread.adb
+++ b/gcc/ada/s-intman-irix-athread.adb
@@ -34,9 +34,6 @@
-- This is an Irix (old pthread library) version of this package.
--- PLEASE DO NOT add any dependences on other packages.
--- This package is designed to work with or without tasking support.
-
-- Make a careful study of all signals available under the OS,
-- to see which need to be reserved, kept always unmasked,
-- or kept always unmasked.
@@ -49,6 +46,7 @@ with System.OS_Interface;
with Interfaces.C;
-- used for "int"
+
package body System.Interrupt_Management is
use System.OS_Interface;
@@ -82,25 +80,27 @@ package body System.Interrupt_Management is
pragma Import
(C, Unreserve_All_Interrupts, "__gl_unreserve_all_interrupts");
-begin
- declare
- function State (Int : Interrupt_ID) return Character;
- pragma Import (C, State, "__gnat_get_interrupt_state");
- -- Get interrupt state. Defined in a-init.c
- -- The input argument is the interrupt number,
- -- and the result is one of the following:
-
- User : constant Character := 'u';
- Runtime : constant Character := 'r';
- Default : constant Character := 's';
- -- 'n' this interrupt not set by any Interrupt_State pragma
- -- 'u' Interrupt_State pragma set state to User
- -- 'r' Interrupt_State pragma set state to Runtime
- -- 's' Interrupt_State pragma set state to System (use "default"
- -- system handler)
-
+ function State (Int : Interrupt_ID) return Character;
+ pragma Import (C, State, "__gnat_get_interrupt_state");
+ -- Get interrupt state. Defined in a-init.c
+ -- The input argument is the interrupt number,
+ -- and the result is one of the following:
+
+ User : constant Character := 'u';
+ Runtime : constant Character := 'r';
+ Default : constant Character := 's';
+ -- 'n' this interrupt not set by any Interrupt_State pragma
+ -- 'u' Interrupt_State pragma set state to User
+ -- 'r' Interrupt_State pragma set state to Runtime
+ -- 's' Interrupt_State pragma set state to System (use "default"
+ -- system handler)
+
+ ----------------
+ -- Initialize --
+ ----------------
+
+ procedure Initialize is
use Interfaces.C;
-
begin
Abort_Task_Interrupt := Abort_Signal;
@@ -158,5 +158,6 @@ begin
-- mark it as reserved.
Reserve (0) := True;
- end;
+ end Initialize;
+
end System.Interrupt_Management;