ARM: Fix up vfp exception location in thumb mode
authorColin Cross <ccross@android.com>
Fri, 14 Jan 2011 22:32:49 +0000 (14:32 -0800)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:06:45 +0000 (12:06 -0800)
commiteb591e8cba4cd93accc99b201e9247069e5ef9a8
tree13125ba3861fcd198cfa321b522fef433450ed12
parentc4b036aad27d073e408cbecc1a15fadd1fa1a4d8
ARM: Fix up vfp exception location in thumb mode

The exception handler in entry-armv.S checks for thumb mode and
correctly determines the exception location and instruction,
but VFP_bounce uses the uncorrected location off the stack.
If the VFP exception occured in Thumb mode, fix up the
exception location on the stack to match the value that would
be returned in ARM mode.

Fixes segfaults in userspace applications running in Thumb mode
caused by a handled VFP exception returning to the middle of the
instruction that triggered the exception.

Change-Id: I02be4c5b546561d9a967a02c1e9eb1de876cff07
Original-author: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Colin Cross <ccross@android.com>
arch/arm/kernel/entry-armv.S