This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] m68k.h: Add "interrupt_thread" attribute.
- From: Roman Zippel <zippel at linux-m68k dot org>
- To: Kazu Hirata <kazu at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, law at redhat dot com, schwab at suse dot de
- Date: Fri, 27 Apr 2007 19:09:39 +0200 (CEST)
- Subject: Re: [patch] m68k.h: Add "interrupt_thread" attribute.
- References: <200704271647.l3RGl6mR022901@sparrowhawk.codesourcery.com>
Hi,
On Fri, 27 Apr 2007, Kazu Hirata wrote:
> Attached is a patch to add "interrupt_thread" attribute.
>
> A function with the interrupt_thread attribute is compiled just like
> an ordinary function except that
>
> - no register is saved or restored in prologue/epilogue.
>
> - the 'rts' instruction is replaced with the 'sleep' instruction.
This looks rather independent, so it might be better to do this with two
attributes to keep it more general.
bye, Roman