Page MenuHomeFreeBSD

arm: Handle VFP exceptions from the kernel
ClosedPublic

Authored by markj on Dec 8 2023, 6:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 6:50 PM
Unknown Object (File)
Nov 23 2024, 9:26 AM
Unknown Object (File)
Nov 8 2024, 6:54 AM
Unknown Object (File)
Nov 8 2024, 2:09 AM
Unknown Object (File)
Nov 6 2024, 1:27 AM
Unknown Object (File)
Oct 5 2024, 8:51 AM
Unknown Object (File)
Oct 5 2024, 1:55 AM
Unknown Object (File)
Oct 4 2024, 4:11 AM
Subscribers

Details

Summary

vfp_bounce() is called when handling an undefined instruction exception,
to see if we need to enable the VFP. Previously it would
unconditionally panic if the exception came from the kernel, which was
simply wrong, and it did not permit lazy initialization of VFP state in
the kernel. However, this functionality can be useful and is supported
by arm's fpu_kern_enter() implementation. Thus, relax assertions and
consume the exception if the thread was in an FPU section.

Based on a patch from Stormshield.

MFC after: 2 weeks
Sponsored by: Klara, Inc.
Sponsored by: Stormshield

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable