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
F154467083: D50208.diff
Tue, Apr 28, 4:43 PM
Unknown Object (File)
Tue, Apr 21, 9:15 PM
Unknown Object (File)
Sun, Apr 19, 8:41 PM
Unknown Object (File)
Tue, Apr 14, 9:37 PM
Unknown Object (File)
Tue, Apr 14, 9:56 AM
Unknown Object (File)
Sat, Apr 11, 3:14 PM
Unknown Object (File)
Wed, Apr 8, 12:28 PM
Unknown Object (File)
Mon, Apr 6, 8:23 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 Not Applicable
Unit
Tests Not Applicable