]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7729/1: vfp: ensure VFP_arch is non-zero when VFP is not supported
authorWill Deacon <will.deacon@arm.com>
Thu, 16 May 2013 18:38:51 +0000 (19:38 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 22 May 2013 21:01:37 +0000 (22:01 +0100)
commita556620fe67e238bebeabb71d53172301ee1dabf
tree1b1db576a240cd34293a7de07e1e480715056c84
parent87bfb108521bcb870a401da84260e2a035d1ccbc
ARM: 7729/1: vfp: ensure VFP_arch is non-zero when VFP is not supported

Commit 27a7b7f0231e ("ARM: cleanup undefined instruction entry code")
improved the register scheduling when handling undefined instructions.
A side effect of this is that r5 is now used as a temporary, whilst the
VFP probing code relies on r5 containing a non-zero value when VFP is
not supported.

This patch fixes the VFP detection code so that we don't rely on the
contents of r5. Without this patch, Linux dies loudly on CPUs without
VFP support.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/vfp/entry.S