These attributes are supported by the NDS32 back end:
exception ¶This attribute applies to functions.
Use this attribute on the NDS32 target to indicate that the specified function is an exception handler. The compiler will generate corresponding sections for use in an exception handler.
interrupt ¶This attribute applies to functions.
On NDS32 target, this attribute indicates that the specified function is an interrupt handler. The compiler generates corresponding sections for use in an interrupt handler. You can use the following attributes to modify the behavior:
nested ¶not_nestednested_readyThis interrupt service routine is interruptible after PSW.GIE
(global interrupt enable) is set. This allows interrupt service routine to
finish some short critical code before enabling interrupts.
save_allThe system will help save all registers into stack before entering interrupt handler.
partial_saveThe system will help save caller registers into stack before entering interrupt handler.
reset ¶This attribute applies to functions.
Use this attribute on the NDS32 target to indicate that the specified function is a reset handler. The compiler will generate corresponding sections for use in a reset handler. You can use the following attributes to provide extra exception handling:
nmi ¶warmProvide a user-defined function to handle warm reset exception.