ARM: be strict about FP exceptions in kernel mode
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 24 May 2013 14:23:28 +0000 (16:23 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 8 Jul 2013 21:07:38 +0000 (22:07 +0100)
commitab3da15643469ab2d206dee3d9cfa4194ba77f25
treee332a19c18476b01934d0d2b10551daac0abd5b6
parent0773d73d818702191dd568e1e20bcafc5c64661a
ARM: be strict about FP exceptions in kernel mode

The support code in vfp_support_entry does not care whether the
exception that caused it to be invoked occurred in kernel mode or
in user mode. However, neither condition that could trigger this
exception (lazy restore and VFP bounce to support code) is
currently allowable in kernel mode.

In either case, print a message describing the condition before
letting the undefined instruction handler run its course and trigger
an oops.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
arch/arm/vfp/vfphw.S
arch/arm/vfp/vfpmodule.c