Revert "kernel - Clean up direction flag on syscall entry"
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 17 May 2019 01:55:32 +0000 (18:55 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 17 May 2019 01:55:32 +0000 (18:55 -0700)
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

index e3f4774..395c8f8 100644 (file)
@@ -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