Page MenuHomeFreeBSD

arm64: Start splitting out undef sys insn handling
ClosedPublic

Authored by andrew on May 6 2025, 5:04 PM.
Tags
None
Referenced Files
F135501219: D50208.diff
Mon, Nov 10, 8:56 AM
F135488233: D50208.diff
Mon, Nov 10, 6:33 AM
Unknown Object (File)
Fri, Oct 31, 11:24 PM
Unknown Object (File)
Thu, Oct 30, 5:34 AM
Unknown Object (File)
Sun, Oct 26, 1:00 PM
Unknown Object (File)
Sat, Oct 18, 6:45 PM
Unknown Object (File)
Oct 4 2025, 11:32 AM
Unknown Object (File)
Sep 26 2025, 3:48 AM
Subscribers

Details

Summary

We shouldn't need to decode the instruction when handling an unknown
SYS, MSR, or MRS instruction that raises an EXCP_MSR exception. The
exception syndrome (esr) contains all the information we need and is
safer to use than reading the instruction.

Add a new set of callbacks for these instructions that we can pass in
either the esr from hardware, or a generated version when we have to
fall back to instruction decoding.

Sponsored by: Arm Ltd

Diff Detail

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