HomeFreeBSD

dtrace: fix fbt return probes on RISC-V

Description

dtrace: fix fbt return probes on RISC-V

Return values are passed in a0, so read it from there. We also pass a1 through
to userspace, as the ABI allows small structs to be returned in registers
a0/a1. While here read the register values directly from the trapframe rather
than rtval, and remove the now unneeded argument from dtrace_invop().

Set fbtp_roffset so that we get the correct return location in arg0.

Reviewed by: markj
Sponsored by: Axiado
Differential Revision: https://reviews.freebsd.org/D26389

Details

Provenance
kpAuthored on
Reviewer
markj
Differential Revision
D26389: dtrace: Fix fbt return probes on RISC-V
Parents
rS365625: Revert r365592 and r365603 as the tests are fixed by r365593
Branches
Unknown
Tags
Unknown