summaryrefslogtreecommitdiff
path: root/arch/arm/kernel/hyp-stub.S
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2020-12-19 16:29:58 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2020-12-21 11:19:19 +0000
commit3cce9d44321e460e7c88cdec4e4537a6e9ad7c0d (patch)
tree8b5c828491ea81dbc32f40c3a279f0652ac2054b /arch/arm/kernel/hyp-stub.S
parentf77ac2e378be9dd61eb88728f0840642f045d9d1 (diff)
ARM: 9044/1: vfp: use undef hook for VFP support detection
Commit f77ac2e378be9dd6 ("ARM: 9030/1: entry: omit FP emulation for UND exceptions taken in kernel mode") failed to take into account that there is in fact a case where we relied on this code path: during boot, the VFP detection code issues a read of FPSID, which will trigger an undef exception on cores that lack VFP support. So let's reinstate this logic using an undef hook which is registered only for the duration of the initcall to vpf_init(), and which sets VFP_arch to a non-zero value - as before - if no VFP support is present. Fixes: f77ac2e378be9dd6 ("ARM: 9030/1: entry: omit FP emulation for UND ...") Reported-by: "kernelci.org bot" <bot@kernelci.org> Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/kernel/hyp-stub.S')
0 files changed, 0 insertions, 0 deletions