IRQ on M68K

Scott Howard (scott@objsw.com)
Thu, 08 Oct 1998 09:20:11 -0700


Gnu CC does not support direct coding of interrupt routines.  You need
to write a standard C function to do the work.  You then must write a
small assembly language function which is pointed to by the interrupt
vector, which calls the C function and then executes the 'RTE'
instruction to return from the interrupt.

Dony wrote:

> Hii,
> I remember, there was once discussion about topic IRQ in M68K,
> but at that time the case was calling IRQ routine in C from
> assembler code. On my case I need to call IRQ routine in C from
> C main program. I add an "interrupt" attribute to function
> typing, but GCC doesn't recognize such kind of syntax.
> Can anybody share with me how to do that??
>
> --
> Dony
> Email : dony@willowglen.com.sg
> ________________________________________________
> To get help for the crossgcc list, send mail to
> crossgcc-request@cygnus.com with the text 'help'
> (without the quotes) in the body of the message.

________________________________________________
To get help for the crossgcc list, send mail to
crossgcc-request@cygnus.com with the text 'help'
(without the quotes) in the body of the message.