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)
Sun, Aug 16, 6:55 PM
Unknown Object (File)
Sat, Aug 15, 3:10 AM
Unknown Object (File)
Mon, Aug 10, 7:39 AM
Unknown Object (File)
Wed, Aug 5, 4:52 AM
Unknown Object (File)
Tue, Aug 4, 10:39 PM
Unknown Object (File)
Sun, Aug 2, 5:33 AM
Unknown Object (File)
Sun, Aug 2, 1:42 AM
Unknown Object (File)
Sun, Jul 26, 3:45 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