Author: jhibbits Date: Mon Jul 16 19:47:29 2018 New Revision: 336355 URL: https://svnweb.freebsd.org/changeset/base/336355
Log: dtrace/powerpc: Correct register indices for non-indexed registers in the trapframe Fix an off-by-one error, LR starts at index 32, not index 33, and the others follow suit. Modified: head/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c Modified: head/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c ============================================================================== --- head/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c Mon Jul 16 19:21:50 2018 (r336354) +++ head/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c Mon Jul 16 19:47:29 2018 (r336355) @@ -561,19 +561,19 @@ dtrace_getreg(struct trapframe *rp, uint_t reg) return (rp->fixreg[reg]); switch (reg) { - case 33: + case 32: return (rp->lr); - case 34: + case 33: return (rp->cr); - case 35: + case 34: return (rp->xer); - case 36: + case 35: return (rp->ctr); - case 37: + case 36: return (rp->srr0); - case 38: + case 37: return (rp->srr1); - case 39: + case 38: return (rp->exc); default: DTRACE_CPUFLAG_SET(CPU_DTRACE_ILLOP); _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"