[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] TimerA interrupt handler
On 03/01/2013 17:19, Mariusz Buras wrote:
Try something like this for your handler.
void __attribute__ ((interrupt)) vblHandler ()
{
}
Indeed, it works fine 8-)
I did not know that __attribute__ ((interrupt)) was available on m68k.
It seems that __attribute__ ((interrupt_handler)) is a synonym.
http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#index-interrupt-handler-functions-2591
In both cases, GCC backups all the registers (including d0/d1/a0/a1) and
returns using rte (instead of rts).
--
Vincent Rivière