Andes Workshop
http://forum.andestech.com/

NDS32 target attribute
http://forum.andestech.com/viewtopic.php?f=16&t=845
Page 1 of 1

Author:  cindy [ Sat May 17, 2014 12:16 am ]
Post subject:  NDS32 target attribute

Cool!
There are some NDS32 target attribute in gcc online document.
http://gcc.gnu.org/onlinedocs/gcc/Funct ... butes.html

Code:
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.

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/