The INTERRUPT Pragma

The INTERRUPT pragma enables you to handle interrupts directly with C code.

The syntax of the pragma in C is:

#pragma INTERRUPT (func)

The syntax of the pragma in C++ is:

#pragma INTERRUPT
void func( void )

The code for the function will return via the IRP (interrupt return pointer).

NOTE

Hwi Objects and the INTERRUPT Pragma

The INTERRUPT pragma must not be used when SYS/BIOS Hwi objects are used in conjunction with C functions. The Hwi_enter/Hwi_exit macros and the Hwi dispatcher contain this functionality, and the use of the C modifier can cause negative results.