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, Nov 8, 6:54 AM
Unknown Object (File)
Fri, Nov 8, 2:09 AM
Unknown Object (File)
Wed, Nov 6, 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
Unknown Object (File)
Oct 3 2024, 7:00 PM
Unknown Object (File)
Oct 3 2024, 3:01 PM
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