Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2018 12:54:34 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r327819 - head/sys/amd64/amd64
Message-ID:  <201801111254.w0BCsYvQ016212@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Jan 11 12:54:33 2018
New Revision: 327819
URL: https://svnweb.freebsd.org/changeset/base/327819

Log:
  Do not clear %RFLAGS.DF on fast syscall entry.
  
  Hardware already did it for us due to the mask loaded into the
  MSR_SF_MASK msr register.
  
  Reviewed by:	jhb
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week
  Differential revision:	https://reviews.freebsd.org/D13838

Modified:
  head/sys/amd64/amd64/exception.S

Modified: head/sys/amd64/amd64/exception.S
==============================================================================
--- head/sys/amd64/amd64/exception.S	Thu Jan 11 12:40:43 2018	(r327818)
+++ head/sys/amd64/amd64/exception.S	Thu Jan 11 12:54:33 2018	(r327819)
@@ -410,7 +410,6 @@ IDTVEC(fast_syscall)
 	movq	%r14,TF_R14(%rsp)	/* C preserved */
 	movq	%r15,TF_R15(%rsp)	/* C preserved */
 	movl	$TF_HASSEGS,TF_FLAGS(%rsp)
-	cld
 	FAKE_MCOUNT(TF_RIP(%rsp))
 	movq	PCPU(CURTHREAD),%rdi
 	movq	%rsp,TD_FRAME(%rdi)



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