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
F151935218: D50208.id154969.diff
Sat, Apr 11, 3:14 PM
Unknown Object (File)
Wed, Apr 8, 12:28 PM
Unknown Object (File)
Mon, Apr 6, 8:23 AM
Unknown Object (File)
Sun, Apr 5, 9:04 PM
Unknown Object (File)
Thu, Apr 2, 9:00 AM
Unknown Object (File)
Fri, Mar 27, 11:10 AM
Unknown Object (File)
Thu, Mar 26, 7:50 AM
Unknown Object (File)
Thu, Mar 26, 7:20 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