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

NDS32ATTR_ISR、EXCEPT function parameter ID explain
http://forum.andestech.com/viewtopic.php?f=16&t=823
Page 1 of 1

Author:  jerry [ Fri Apr 11, 2014 11:01 am ]
Post subject:  NDS32ATTR_ISR、EXCEPT function parameter ID explain

void NDS32ATTR_EXCEPT("id=1;save_all_regs;nested")
TBL_Fill_hdlr(int vid, NDS32_CONTEXT *ptr);

void NDS32ATTR_ISR("id=1;nested;save_caller_regs")
HW1_hdlr(int vid);

NDS32ATTR_EXCEPT ID = 1 is mapping interrupt vector table TBL_Fill

NDS32ATTR_ISR ID = 1 is mapping interrupt vector table HW1

BTW,The interrupt or except handler will be using the same function than it ID set several number.

ex: void NDS32ATTR_ISR("id=0,1;nested;save_caller_regs") HW1_hdlr(int vid);
it mean the HW0 and HW1 using the same interrupt handler.

The detail explain NDS32ATTR_XXX explain at Andes_Programming_Guide.
Attachment:
interrupt.jpg
interrupt.jpg [ 88.32 KiB | Viewed 6705 times ]

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