ARM7 / NXP LPC2378
gcc 4.2.2 ; binutils 2.18
Based on some (maybe historic) comment in the forum and/or mailing list, I use the below construct for all my interrupt handlers.
Can anybody confirm or negate this is still needed or was needed at all ?
Thanks in advance,
static void XXXHandler(void)
// real ISR
static void XXXIsr(void) __attribute__ ((naked));
static void XXXIsr(void)
/* Save the context of the interrupted task. */
/* Call the handler. This must be a separate function from the wrapper
to ensure the correct stack frame is set up. */
/* Restore the context of whichever task is going to run next. */