This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] MIPS function attributes for interrupt handlers
- From: "Fu, Chao-Ying" <fu at mips dot com>
- To: "Daniel Jacobowitz" <drow at false dot org>
- Cc: <gcc-patches at gcc dot gnu dot org>, "Richard Sandiford" <rdsandiford at googlemail dot com>, <anemet at caviumnetworks dot com>, <mark at codesourcery dot com>, "Lau, David" <davidlau at mips dot com>
- Date: Wed, 25 Feb 2009 18:10:47 -0800
- Subject: Re: [PATCH] MIPS function attributes for interrupt handlers
- References: <94BD67F8AF3ED34FA362C662BA1F12C501007E7F@MTVEXCHANGE.mips.com> <000801c996ed$112961b0$a914a8c0@mips.com> <20090225171443.GA19624@caradoc.them.org>
- Reply-to: "Fu, Chao-Ying" <fu at mips dot com>
"Daniel Jacobowitz" wrote:
> On Tue, Feb 24, 2009 at 06:02:08PM -0800, Fu, Chao-Ying wrote:
> > Hi All,
> >
> > Based on the discussions last year, I will update my interrupt patch
to
> > support only the following
> > attributes.
> >
> > void __attribute__ ((interrupt )) v0 () { }
> > void __attribute__ ((interrupt (use_shadow_register_set))) v1 () { }
> > void __attribute__ ((interrupt (keep_interrupts_masked))) v2 () { }
> > void __attribute__ ((interrupt (use_shadow_register_set,
> > keep_interrupts_masked))) v3 () { }
>
> I have one question: does the patch cause GCC to generate eret? If
> so, is there another attribute needed for deret?
Yes, from the current patch GCC generates "eret" for return.
So, we may need another attribute as "use_debug_exception_return".
Thanks!
Regards,
Chao-ying