Cool!
There are some NDS32 target attribute in gcc online document.
http://gcc.gnu.org/onlinedocs/gcc/Funct ... butes.htmlCode:
On NDS32 target, this attribute is to indicate that the specified function is an interrupt handler. The compiler will generate corresponding sections for use in an interrupt handler. You can use the following attributes to modify the behavior:
nested
This interrupt service routine is interruptible.
not_nested
This interrupt service routine is not interruptible.
nested_ready
This 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_all
The system will help save all registers into stack before entering interrupt handler.
partial_save
The system will help save caller registers into stack before entering interrupt handler.