is
begin
if User_Entry (Interrupt).T /= Null_Task then
+ -- If an entry is attached to the interrupt (See RM J.7.1), raise
+ -- Program_Error.
- -- In case we have an Interrupt Entry already installed, raise a
- -- program error, (propagate it to the caller).
-
- raise Program_Error with
- "an interrupt is already installed";
+ raise Program_Error with "an interrupt is already installed";
end if;
-- Note : A null handler with Static = True will pass the following
-- No Interrupt binding. If there is an interrupt,
-- Interrupt_Manager will take default action.
- Self_ID.Common.State := Interrupt_Server_Blocked_Interrupt_Sleep;
+ Self_ID.Common.State := Interrupt_Server_Idle_Sleep;
POP.Sleep (Self_ID, Interrupt_Server_Idle_Sleep);
Self_ID.Common.State := Runnable;
if Nkind (Lib_Unit) = N_Subprogram_Declaration then
RE_Table (E) := U.Entity;
- -- Otherwise we must have the package case. First check package
- -- entity itself (e.g. RTE_Name for System.Interrupts.Name)
+ -- Otherwise we must have the package case
else
pragma Assert (Nkind (Lib_Unit) = N_Package_Declaration);