ARM: 6051/1: VFP: preserve the HW context when calling signal handlers
authorImre Deak <imre.deak@nokia.com>
Sun, 11 Apr 2010 14:58:27 +0000 (15:58 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 14 Apr 2010 10:11:30 +0000 (11:11 +0100)
commit82c6f5a5b3e91ef4d2fb8725de4b8cf7affd4d61
tree1f077be392f88b7b8355960b882ffbfdc3e6bab6
parent5c5cac63851f347d8308d69f1892c4af51d7c1a4
ARM: 6051/1: VFP: preserve the HW context when calling signal handlers

From: Imre Deak <imre.deak@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.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/ucontext.h
arch/arm/include/asm/user.h
arch/arm/kernel/signal.c