Hi!
Does anybody know, if there is a way to write custom prolog/epilog for interrupt functions? The context save/restore done by the compiler, differs whether the interrupt function calls any other function (this can be easily remedied, by including dummy function call), and it does not save all the CPU registers (XAR2, XAR3, and RPC are not saved) - this is what really troubles me.
I know that this could be done with 24xx family, by modifying coresponding I$$SAVE and I$$REST routines within real time support library.
Is there maybe some compiler directive, that enables to put some assembler code within the interrupt function (or any function for that mater), before the stack pointer is modified in order to create space for local variables. (maybe something like "naked" attribute for GCC for AVR micros)?
Regards, Mitja