Re: AES assembler optimizations

From: Paul Mackerras
Date: Tue Aug 10 2004 - 20:03:07 EST


David S. Miller writes:

> On sparc64, we:
>
> 1) Always save the full FPU state at context switch time if it
> is active.
>
> 2) On entry to a FPU-using kernel routine, we save the FPU if
> it is active.

How is that implemented? Do you have some magic to make gcc emit a
call to an fpu-save routine in the prolog if the function uses the
FPU? Or are you only talking about functions written in assembler?

Paul.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/