]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
dtrace: Fix RISC-V user stack unwinder
authorJessica Clarke <jrtc27@FreeBSD.org>
Mon, 6 Feb 2023 18:30:57 +0000 (14:30 -0400)
committerMitchell Horne <mhorne@FreeBSD.org>
Mon, 6 Feb 2023 19:26:53 +0000 (15:26 -0400)
commit38720107324b3903f342bcb0306c72c4e4235053
tree04f04daa320f5d236ac7e4ccd7a2c7d3d87c0f16
parent06faad1de2c9aadcfd606d5f7121b201dbfbaa9d
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
sys/cddl/dev/dtrace/riscv/dtrace_isa.c
sys/riscv/include/frame.h