diff options
author | Mark Johnston <markj@FreeBSD.org> | 2023-12-11 14:08:49 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2023-12-11 14:08:49 +0000 |
commit | ce2f34ade8b787b068085fa8a8ddd295b06c2737 (patch) | |
tree | 3838b9e06a16837fd7e04e47e1c34f0a605fece1 | |
parent | 03a07de0d5ee7d58069152070c42d55f7ec32b7c (diff) | |
download | src-ce2f34ade8b787b068085fa8a8ddd295b06c2737.tar.gz src-ce2f34ade8b787b068085fa8a8ddd295b06c2737.zip |
arm: Disable the VFP during boot
The VFP code expects the kernel to boot with VFP disabled, but some
boards will boot with it enabled. Make sure that vfp_init() disables
the VFP on each CPU during boot.
PR: 273752
Reviewed by: andrew
Diagnosed by: Thomas Skibo <thomas-bsd@skibo.net>
MFC after: 1 week
-rw-r--r-- | sys/arm/arm/vfp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arm/arm/vfp.c b/sys/arm/arm/vfp.c index bbcb468391b6..6c398a7a3eaa 100644 --- a/sys/arm/arm/vfp.c +++ b/sys/arm/arm/vfp.c @@ -181,6 +181,8 @@ vfp_init(void) elf_hwcap |= HWCAP_VFPv4; } + vfp_disable(); + /* initialize the coprocess 10 and 11 calls * These are called to restore the registers and enable * the VFP hardware. |