aboutsummaryrefslogtreecommitdiff
path: root/sys/cddl/contrib/opensolaris/uts/powerpc
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2017-12-12 20:41:11 +0000
committerMark Johnston <markj@FreeBSD.org>2017-12-12 20:41:11 +0000
commitf74deabac8a74569941b0630a306f2940efffbe6 (patch)
tree31967f53fb61dbf59294f8d67be1306b8985f298 /sys/cddl/contrib/opensolaris/uts/powerpc
parentd6f64df91289453012e8b529b1c65d4523921429 (diff)
downloadsrc-f74deabac8a74569941b0630a306f2940efffbe6.tar.gz
src-f74deabac8a74569941b0630a306f2940efffbe6.zip
Correct initialization of pc on powerpc.
PR: 224293 Submitted by: Breno Leitao <breno.leitao@gmail.com> X-MFC with: r326774 Pointy hat: markj
Notes
Notes: svn path=/head/; revision=326811
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/powerpc')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c3
1 files changed, 2 insertions, 1 deletions
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, &reg);
rp = &reg;
+ pc = rp->pc;
/*
* It's possible that a user (in a veritable orgy of bad planning)