ARM: VFP: add support to sync the VFP state of the current thread
authorImre Deak <imre.deak@nokia.com>
Thu, 4 Feb 2010 19:38:02 +0000 (21:38 +0200)
committerKoen Kooi <koen@dominion.thruhere.net>
Wed, 21 Jul 2010 10:23:07 +0000 (12:23 +0200)
commitb85bd8c207cdbaf04a8b03200cc6a57386367d08
treeb582a04612071005f78c903927deafefdc0a6d2f
parent46bef7ba96210a2832199352b177525b16558c92
ARM: VFP: add support to sync the VFP state of the current thread

ARM: VFP: add support to sync the VFP state of the current thread

So far vfp_sync_state worked only for threads other than the current
one. This worked for tracing other threads, but not for PTRACE_TRACEME.
Syncing for the current thread will also be needed by an upcoming patch
adding support for VFP context save / restore around signal handlers.

For SMP we need get_cpu now, since we have to protect the FPEXC
register, other than this things remained the same for threads other
than the current.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
arch/arm/vfp/vfpmodule.c