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 9, 8:59 AM
Unknown Object (File)
Mon, Jul 7, 6:28 PM
Unknown Object (File)
Mon, Jul 7, 6:33 AM
Unknown Object (File)
Sat, Jul 5, 5:29 PM
Unknown Object (File)
Thu, Jul 3, 9:30 AM
Unknown Object (File)
Wed, Jul 2, 9:26 PM
Unknown Object (File)
Wed, Jul 2, 2:26 AM
Unknown Object (File)
Tue, Jul 1, 9:06 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