Next: , Previous: Pragma Interface_Name, Up: Implementation Defined Pragmas


Pragma Interrupt_Handler

Syntax:

     pragma Interrupt_Handler (procedure_LOCAL_NAME);

This program unit pragma is supported for parameterless protected procedures as described in Annex C of the Ada Reference Manual. On the AAMP target the pragma can also be specified for nonprotected parameterless procedures that are declared at the library level (which includes procedures declared at the top level of a library package). In the case of AAMP, when this pragma is applied to a nonprotected procedure, the instruction IERET is generated for returns from the procedure, enabling maskable interrupts, in place of the normal return instruction.