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, Jun 4, 5:21 PM
Unknown Object (File)
Wed, May 28, 3:34 PM
Unknown Object (File)
Mon, May 26, 7:04 AM
Unknown Object (File)
Sun, May 25, 10:32 AM
Unknown Object (File)
Sun, May 25, 8:09 AM
Unknown Object (File)
Sun, May 25, 5:08 AM
Unknown Object (File)
Sun, May 25, 2:58 AM
Unknown Object (File)
Wed, May 21, 7:41 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