[patch] m68k.h: Add "interrupt_thread" attribute.

Roman Zippel zippel@linux-m68k.org
Fri Apr 27 18:42:00 GMT 2007


Hi,

On Fri, 27 Apr 2007, Kazu Hirata wrote:

> +      /* Interrupt thread does not need to save any register.  */
> +      if (!interrupt_thread)
> +	for (regno = 16; regno < 24; regno++)
> +	  if (m68k_save_reg (regno, interrupt_handler))
> +	    {
> +	      mask |= 1 << (regno - FP0_REG);
> +	      saved++;
> +	    }

Independent of how this is exported via attributes, this should really be 
done via a single frame type, which specifies how registers are saved.

bye, Roman



More information about the Gcc-patches mailing list