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)
Sat, Oct 4, 11:32 AM
Unknown Object (File)
Fri, Sep 26, 3:48 AM
Unknown Object (File)
Thu, Sep 18, 1:51 PM
Unknown Object (File)
Wed, Sep 17, 7:38 AM
Unknown Object (File)
Sep 10 2025, 9:02 AM
Unknown Object (File)
Sep 1 2025, 8:55 AM
Unknown Object (File)
Aug 15 2025, 2:57 AM
Unknown Object (File)
Aug 15 2025, 12:03 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