m68k Attributes (Using the GNU Compiler Collection (GCC))

#### 6.4.2.14 m68k Attributes ¶

These attributes are supported by the m68k back end:

`interrupt` ¶
`interrupt_handler`

  These attributes apply to functions.

  They indicate that the specified function is an interrupt handler. The compiler generates function entry and exit sequences suitable for use in an interrupt handler when this attribute is present. Either name may be used.

`interrupt_thread` ¶

  This attribute applies to functions.

  Use this attribute on fido, a subarchitecture of the m68k, to indicate that the specified function is an interrupt handler that is designed to run as a thread. The compiler omits generate prologue/epilogue sequences and replaces the return instruction with a `sleep` instruction. This attribute is available only on fido.