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
Unknown Object (File)
Wed, Jul 1, 10:58 PM
Unknown Object (File)
Tue, Jun 23, 12:45 AM
Unknown Object (File)
Sun, Jun 21, 12:48 PM
Unknown Object (File)
Sat, Jun 20, 7:32 AM
Unknown Object (File)
Fri, Jun 19, 1:28 PM
Unknown Object (File)
May 15 2026, 11:08 AM
Unknown Object (File)
May 15 2026, 6:39 AM
Unknown Object (File)
May 15 2026, 12:38 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