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, Feb 4, 1:37 PM
Unknown Object (File)
Fri, Jan 30, 10:17 PM
Unknown Object (File)
Fri, Jan 30, 5:50 PM
Unknown Object (File)
Sun, Jan 18, 9:12 AM
Unknown Object (File)
Sat, Jan 17, 9:36 PM
Unknown Object (File)
Thu, Jan 15, 5:26 PM
Unknown Object (File)
Jan 12 2026, 10:22 AM
Unknown Object (File)
Jan 10 2026, 6:34 PM
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