This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: IRQ on M68K


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.