[RFC PATCH v5 2/2] ARM: VFP: preserve the HW context when calling signal handlers
Russell King - ARM Linux
linux at arm.linux.org.uk
Mon Apr 12 14:41:36 EDT 2010
On Fri, Apr 02, 2010 at 05:36:03PM +0300, imre.deak at nokia.com wrote:
> From: Imre Deak <imre.deak at nokia.com>
>
> Signal handlers can use floating point, so prevent them to corrupt
> the main thread's VFP context. So far there were two signal stack
> frame formats defined based on the VFP implementation, but the user
> struct used for ptrace covers all posibilities, so use it for the
> signal stack too.
>
> Introduce also a new user struct for VFP exception registers. In
> this too fields not relevant to the current VFP architecture are
> ignored.
>
> Support to save / restore the exception registers was added by
> Will Deacon.
Look fine to me, but I'd like an ack from Daniel since he partly looks
after the toolchain side of things and has dealt with this area before.
More information about the linux-arm-kernel
mailing list