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, Jul 26, 2:25 AM
Unknown Object (File)
Jun 5 2024, 7:52 PM
Unknown Object (File)
Jun 3 2024, 1:52 PM
Unknown Object (File)
Jun 3 2024, 1:52 PM
Unknown Object (File)
Jun 3 2024, 1:36 PM
Unknown Object (File)
May 30 2024, 12:55 PM
Unknown Object (File)
May 8 2024, 7:05 PM
Unknown Object (File)
Apr 13 2024, 4:25 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