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

(cherry picked from commit 38720107324b3903f342bcb0306c72c4e4235053)

Details

Provenance
jrtc27Authored on Feb 6 2023, 6:30 PM
mhorneCommitted on Feb 15 2023, 4:41 PM
Reviewer
mhorne
Differential Revision
D28054: dtrace: Fix RISC-V user stack unwinder
Parents
rG698af78e7809: dtrace_asm.S: properly enter/exit user access
Branches
Unknown
Tags
Unknown