From f74deabac8a74569941b0630a306f2940efffbe6 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Tue, 12 Dec 2017 20:41:11 +0000 Subject: [PATCH] Correct initialization of pc on powerpc. PR: 224293 Submitted by: Breno Leitao X-MFC with: r326774 Pointy hat: markj --- sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c b/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c index a2732cb5d56f..69ba0f3c64d0 100644 --- a/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c +++ b/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c @@ -333,7 +333,7 @@ fasttrap_pid_probe(struct trapframe *frame) struct reg reg, *rp; struct rm_priotracker tracker; proc_t *p = curproc; - uintptr_t pc = rp->pc; + uintptr_t pc; uintptr_t new_pc = 0; fasttrap_bucket_t *bucket; fasttrap_tracepoint_t *tp, tp_local; @@ -343,6 +343,7 @@ fasttrap_pid_probe(struct trapframe *frame) fill_regs(curthread, ®); rp = ® + pc = rp->pc; /* * It's possible that a user (in a veritable orgy of bad planning)