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
F174465660: D50208.id155320.diff
Sat, Oct 3, 11:32 AM
Unknown Object (File)
Fri, Oct 2, 6:00 PM
Unknown Object (File)
Tue, Sep 22, 4:12 PM
Unknown Object (File)
Tue, Sep 22, 10:28 AM
Unknown Object (File)
Tue, Sep 22, 9:43 AM
Unknown Object (File)
Wed, Sep 16, 10:51 AM
Unknown Object (File)
Tue, Sep 15, 2:15 AM
Unknown Object (File)
Tue, Sep 8, 5:12 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 63957
Build 60841: arc lint + arc unit