]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/DebugSupportDxe/X64/AsmFuncs.asm
Clear the direction flag in interrupt/exception handlers' assembly entry code before...
[mirror_edk2.git] / MdeModulePkg / Universal / DebugSupportDxe / X64 / AsmFuncs.asm
index b9c32dd2778da36b9476e2b4c08965f95bc172e7..bce49ef76208638a75f00645e295e1c8150e90b1 100644 (file)
@@ -1,7 +1,7 @@
 ;/** @file\r
 ;  Low level x64 routines used by the debug support driver.\r
 ;\r
-;  Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+;  Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>\r
 ;  This program and the accompanying materials\r
 ;  are licensed and made available under the terms and conditions of the BSD License\r
 ;  which accompanies this distribution.  The full text of the license may be found at\r
@@ -393,6 +393,9 @@ ExtraPushDone:
                 ; They MUST be.  If they are not, a GP fault will occur.\r
                 FXSTOR_RDI\r
 \r
+;; UEFI calling convention for x64 requires that Direction flag in EFLAGs is clear\r
+                cld\r
+\r
 ;; UINT64  ExceptionData;\r
                 mov     rax, ExceptData\r
                 push    rax\r