From 3cc72d3d3aea9e3acebc0ac1df54d8731b77d653 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 16 May 2019 18:55:32 -0700 Subject: [PATCH] Revert "kernel - Clean up direction flag on syscall entry" Actually not needed, the D flag is cleared via the mask set in MSR_SF_MASK. Revert. This reverts commit cea0e49dc0b2e5aea1b929d02f12d00df66528e2. --- sys/platform/pc64/x86_64/exception.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/platform/pc64/x86_64/exception.S b/sys/platform/pc64/x86_64/exception.S index e3f47741ed..395c8f8060 100644 --- a/sys/platform/pc64/x86_64/exception.S +++ b/sys/platform/pc64/x86_64/exception.S @@ -443,7 +443,7 @@ IDTVEC(fast_syscall) movq %rax,%r13 movq %rax,%r14 movq %rax,%r15 - cld + sti FAKE_MCOUNT(TF_RIP(%rsp)) movq %rsp, %rdi -- 2.41.0