[Midnightbsd-cvs] src [9149] trunk/sys/cddl/dev/dtrace/i386: sync with freebsd 9.2
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Oct 13 21:59:43 EDT 2016
Revision: 9149
http://svnweb.midnightbsd.org/src/?rev=9149
Author: laffer1
Date: 2016-10-13 21:59:43 -0400 (Thu, 13 Oct 2016)
Log Message:
-----------
sync with freebsd 9.2
Modified Paths:
--------------
trunk/sys/cddl/dev/dtrace/i386/dis_tables.c
trunk/sys/cddl/dev/dtrace/i386/dis_tables.h
trunk/sys/cddl/dev/dtrace/i386/dtrace_asm.S
trunk/sys/cddl/dev/dtrace/i386/dtrace_isa.c
trunk/sys/cddl/dev/dtrace/i386/dtrace_subr.c
Modified: trunk/sys/cddl/dev/dtrace/i386/dis_tables.c
===================================================================
--- trunk/sys/cddl/dev/dtrace/i386/dis_tables.c 2016-10-14 01:58:52 UTC (rev 9148)
+++ trunk/sys/cddl/dev/dtrace/i386/dis_tables.c 2016-10-14 01:59:43 UTC (rev 9149)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*
* CDDL HEADER START
*
@@ -18,7 +19,7 @@
*
* CDDL HEADER END
*
- * $MidnightBSD$
+ * $FreeBSD: release/9.2.0/sys/cddl/dev/dtrace/i386/dis_tables.c 238503 2012-07-15 20:38:02Z avg $
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
Modified: trunk/sys/cddl/dev/dtrace/i386/dis_tables.h
===================================================================
--- trunk/sys/cddl/dev/dtrace/i386/dis_tables.h 2016-10-14 01:58:52 UTC (rev 9148)
+++ trunk/sys/cddl/dev/dtrace/i386/dis_tables.h 2016-10-14 01:59:43 UTC (rev 9149)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*
* CDDL HEADER START
*
@@ -18,7 +19,7 @@
*
* CDDL HEADER END
*
- * $MidnightBSD$
+ * $FreeBSD: release/9.2.0/sys/cddl/dev/dtrace/i386/dis_tables.h 179237 2008-05-23 05:59:42Z jb $
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
Modified: trunk/sys/cddl/dev/dtrace/i386/dtrace_asm.S
===================================================================
--- trunk/sys/cddl/dev/dtrace/i386/dtrace_asm.S 2016-10-14 01:58:52 UTC (rev 9148)
+++ trunk/sys/cddl/dev/dtrace/i386/dtrace_asm.S 2016-10-14 01:59:43 UTC (rev 9149)
@@ -19,7 +19,7 @@
*
* CDDL HEADER END
*
- * $MidnightBSD$
+ * $FreeBSD: release/9.2.0/sys/cddl/dev/dtrace/i386/dtrace_asm.S 233076 2012-03-17 05:45:21Z marcel $
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Modified: trunk/sys/cddl/dev/dtrace/i386/dtrace_isa.c
===================================================================
--- trunk/sys/cddl/dev/dtrace/i386/dtrace_isa.c 2016-10-14 01:58:52 UTC (rev 9148)
+++ trunk/sys/cddl/dev/dtrace/i386/dtrace_isa.c 2016-10-14 01:59:43 UTC (rev 9149)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*
* CDDL HEADER START
*
@@ -19,7 +20,7 @@
*
* CDDL HEADER END
*
- * $MidnightBSD$
+ * $FreeBSD: release/9.2.0/sys/cddl/dev/dtrace/i386/dtrace_isa.c 211608 2010-08-22 10:53:32Z rpaulo $
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
Modified: trunk/sys/cddl/dev/dtrace/i386/dtrace_subr.c
===================================================================
--- trunk/sys/cddl/dev/dtrace/i386/dtrace_subr.c 2016-10-14 01:58:52 UTC (rev 9148)
+++ trunk/sys/cddl/dev/dtrace/i386/dtrace_subr.c 2016-10-14 01:59:43 UTC (rev 9149)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*
* CDDL HEADER START
*
@@ -19,7 +20,7 @@
*
* CDDL HEADER END
*
- * $MidnightBSD$
+ * $FreeBSD: release/9.2.0/sys/cddl/dev/dtrace/i386/dtrace_subr.c 251666 2013-06-12 20:08:30Z gnn $
*
*/
/*
@@ -27,6 +28,10 @@
* Use is subject to license terms.
*/
+/*
+ * Copyright (c) 2011, Joyent, Inc. All rights reserved.
+ */
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/types.h>
@@ -300,14 +305,15 @@
}
/*
- * If we've executed the original instruction, but haven't performed
- * the jmp back to t->t_dtrace_npc or the clean up of any registers
- * used to emulate %rip-relative instructions in 64-bit mode, do that
- * here and take the signal right away. We detect this condition by
- * seeing if the program counter is the range [scrpc + isz, astpc).
+ * If we have executed the original instruction, but we have performed
+ * neither the jmp back to t->t_dtrace_npc nor the clean up of any
+ * registers used to emulate %rip-relative instructions in 64-bit mode,
+ * we'll save ourselves some effort by doing that here and taking the
+ * signal right away. We detect this condition by seeing if the program
+ * counter is the range [scrpc + isz, astpc).
*/
- if (t->t_dtrace_astpc - rp->r_pc <
- t->t_dtrace_astpc - t->t_dtrace_scrpc - isz) {
+ if (rp->r_pc >= t->t_dtrace_scrpc + isz &&
+ rp->r_pc < t->t_dtrace_astpc) {
#ifdef __amd64
/*
* If there is a scratch register and we're on the
More information about the Midnightbsd-cvs
mailing list