On Tue, Oct 4, 2011 at 2:03 PM, Nagasrinivas Pinjala <pinja...@yahoo.com>wrote:

>
> Last week Dave told that are a few problems with the ARM GCC compiler which
> made me think that may be the compiler isn't producing the correct epilogue
> for the interrupt function. I decided to declare the function attribute as
> "naked" and write the function prologue and epilogue myself. Should I embed
> the code in the interrupt handler or should I declare separate functions for
> prologue and epilogue respectively ? If I can embed the code how can I do
> that ?
> Are there any examples in the library that I can follow ?
>

 In the liblpc23xx source in lpc23xx-vic/include/lpc23xx-vic.h file there
are two macros defined:
ISR_ENTRY
and
ISR_EXIT

You can use these if you want to declare the isr with 'naked' attribute.
('do-it-yourself' mode).
_______________________________________________
psas-avionics mailing list
psas-avionics@lists.psas.pdx.edu
http://lists.psas.pdx.edu/mailman/listinfo/psas-avionics

Reply via email to