Page MenuHomeFreeBSD

arm64: Add the SVE registers to the signal frame
Needs ReviewPublic

Authored by andrew on Jan 4 2024, 12:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 29, 11:04 AM
Unknown Object (File)
Fri, Apr 26, 2:52 AM
Unknown Object (File)
Tue, Apr 23, 3:50 AM
Unknown Object (File)
Sat, Apr 13, 11:54 PM
Unknown Object (File)
Mar 27 2024, 1:28 AM
Unknown Object (File)
Mar 4 2024, 11:09 PM
Unknown Object (File)
Mar 4 2024, 11:09 PM
Unknown Object (File)
Mar 4 2024, 10:54 PM
Subscribers

Details

Reviewers
kib
markj
manu
Group Reviewers
arm64
Summary

Use the new extended register support in the arm64 signal frame to
handle the SVE registers.

As these registers alias the VFP registers we use the floating point
register values to restore the lower bits of the SVE registers. This
is to support software that doesn't understand SVE to continue working.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 57124
Build 54012: arc lint + arc unit

Event Timeline

I have the same question here I did about the other change to sigreturn: why no changes to setcontext and how does this interact with them?

I don't think we need to store the SCE registers in getcontextx. It's a function call that doesn't take an SVE register as an argument so the ABI doesn't require the upper bits of SVE registers to be preserved. We could restore the SVE registers in setcontextx if they are in the list of registers.

Rebase and check the SVE registers are only set once