aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2018-01-11 12:54:33 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2018-01-11 12:54:33 +0000
commit4975c202ac554bdb482994df3d48974f2f6e2801 (patch)
tree05814df31b3f18dddf1eaf89567d35d8dff3058f
parent0f7c159f6b056d8b6795ec729f5f638ccb4f68b7 (diff)
downloadsrc-4975c202ac554bdb482994df3d48974f2f6e2801.tar.gz
src-4975c202ac554bdb482994df3d48974f2f6e2801.zip
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
Notes
Notes: svn path=/head/; revision=327819
-rw-r--r--sys/amd64/amd64/exception.S1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/amd64/amd64/exception.S b/sys/amd64/amd64/exception.S
index d3c11082958a..870e36ab97e7 100644
--- a/sys/amd64/amd64/exception.S
+++ b/sys/amd64/amd64/exception.S
@@ -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)