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: Getting GCC to generate m68k RTE instruction


Matthew Majka wrote:
> 
> Hi all,
> 
> Target m68k-coff (MC68360)
> 
> Is there are way to tell GCC to use an RTE instruction, instead of RTS, at the
> end of a function used as an interrupt handler?  A pragma perhaps?
> 
> Thanx,
> 
> Matt
> 
> --
> __________________________________
> Matthew Majka - Software Engineer
> Honeywell Defense Avionics Systems
> Albuquerque, New Mexico, USA

We typically code a wrapper function which uses inline assembler to create a label (for
the interrupt vector) and the RTE instruction.

This wrapper calls our handler, coded in C. The C prolog and epilog of the wrapper aren't
executed.

Good Luck,

Jerry Hicks
jhicks@glenatl.glenayre.com