Handler : System.OS_Interface.Interrupt_Handler)
is
Vec : constant Interrupt_Vector :=
- Interrupt_Number_To_Vector (int (Interrupt));
+ Interrupt_Number_To_Vector
+ (Interfaces.C.int (Interrupt));
- Status : int;
+ Status : Interfaces.C.int;
begin
-- Only install umbrella handler when no Ada handler has already been
procedure Notify_Interrupt (Param : System.Address) is
Interrupt : constant Interrupt_ID := Interrupt_ID (Param);
Id : constant Binary_Semaphore_Id := Semaphore_ID_Map (Interrupt);
- Status : int;
+ Status : Interfaces.C.int;
begin
if Id /= 0 then
Status := Binary_Semaphore_Release (Id);
--------------------
procedure Unbind_Handler (Interrupt : Interrupt_ID) is
- Status : int;
+ Status : Interfaces.C.int;
begin
-- Flush server task off semaphore, allowing it to terminate
Tmp_Handler : Parameterless_Handler;
Tmp_ID : Task_Id;
Tmp_Entry_Index : Task_Entry_Index;
- Status : int;
+ Status : Interfaces.C.int;
begin
Semaphore_ID_Map (Interrupt) := Int_Sema;
Res :=
mprotect
(Stack_Base - (Stack_Base mod Page_Size) + Page_Size,
- size_t (Page_Size),
+ Interfaces.C.size_t (Page_Size),
prot => (if On then PROT_ON else PROT_OFF));
pragma Assert (Res = 0);
end if;