__flat
In this section:
Syntax
See Syntax for object attributes.
Description
The __flat keyword can be used in the definition of a trap, interrupt, callt, or syscall function to inhibit the generation of code that stores and restores special processor registers at the entry and leave code, respectively.
Note
You should not use this keyword if the system is supposed to handle nested interrupts, or if the trap or call table function could—directly or indirectly—call another trap or call table function.
Example
__flat __interrupt void my_int_func(void)
See also
Primitives for interrupts, concurrency, and OS-related programming.