HomeFreeBSD

dtrace: Fix RISC-V user stack unwinder

Description

dtrace: Fix RISC-V user stack unwinder

The unwind logic was copied from AArch64 which follows the peculiar
AACPS (where, unlike typical RISC architectures, its frame pointer
follows an x86/stack machine-like convention where the frame pointer
points at the bottom of the frame record, not the top). Delete the
pointless riscv_frame struct and fix this.

Reviewed by: mhorne
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D28054

Details

Provenance
jrtc27Authored on Feb 6 2023, 6:30 PM
mhorneCommitted on Feb 6 2023, 7:26 PM
Reviewer
mhorne
Differential Revision
D28054: dtrace: Fix RISC-V user stack unwinder
Parents
rG06faad1de2c9: dtrace: handle page faults in riscv dtrace_trap()
Branches
Unknown
Tags
Unknown