Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jun 2012 18:37:55 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r237167 - stable/7/sys/amd64/amd64
Message-ID:  <201206161837.q5GIbtWo059664@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat Jun 16 18:37:54 2012
New Revision: 237167
URL: http://svn.freebsd.org/changeset/base/237167

Log:
  Move misplaced comment.
  
  Discussed with:	bz

Modified:
  stable/7/sys/amd64/amd64/trap.c

Modified: stable/7/sys/amd64/amd64/trap.c
==============================================================================
--- stable/7/sys/amd64/amd64/trap.c	Sat Jun 16 17:05:09 2012	(r237166)
+++ stable/7/sys/amd64/amd64/trap.c	Sat Jun 16 18:37:54 2012	(r237167)
@@ -970,10 +970,6 @@ syscall(struct trapframe *frame)
 	}
 
 	/*
-	 * Traced syscall.
-	 */
-
-	/*
 	 * If the user-supplied value of %rip is not a canonical
 	 * address, then some CPUs will trigger a ring 0 #GP during
 	 * the sysret instruction.  However, the fault handler would
@@ -989,6 +985,10 @@ syscall(struct trapframe *frame)
 		ksi.ksi_addr = (void *)td->td_frame->tf_rip;
 		trapsignal(td, &ksi);
 	}
+
+	/*
+	 * Traced syscall.
+	 */
 	if (orig_tf_rflags & PSL_T) {
 		frame->tf_rflags &= ~PSL_T;
 		ksiginfo_init_trap(&ksi);



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