Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2017 20:41:11 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326811 - head/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace
Message-ID:  <201712122041.vBCKfBXG058320@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Tue Dec 12 20:41:11 2017
New Revision: 326811
URL: https://svnweb.freebsd.org/changeset/base/326811

Log:
  Correct initialization of pc on powerpc.
  
  PR:		224293
  Submitted by:	Breno Leitao <breno.leitao@gmail.com>
  X-MFC with:	r326774
  Pointy hat:	markj

Modified:
  head/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c

Modified: head/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c	Tue Dec 12 20:28:54 2017	(r326810)
+++ head/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c	Tue Dec 12 20:41:11 2017	(r326811)
@@ -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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712122041.vBCKfBXG058320>