]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/DebugSupportDxe/Ia32/AsmFuncs.asm
Clear the direction flag in interrupt/exception handlers' assembly entry code before...
[mirror_edk2.git] / MdeModulePkg / Universal / DebugSupportDxe / Ia32 / AsmFuncs.asm
index 80ee1824d6f7edac634b37a86009ba56680b369d..32cbc3165413ff86414f676cda2eabbbd94222da 100644 (file)
@@ -1,7 +1,7 @@
 ;/** @file\r
 ;  Low leve IA32 specific debug support functions.\r
 ;\r
-;  Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+;  Copyright (c) 2006 - 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
@@ -363,6 +363,9 @@ CommonIdtEntry::
                 ; They MUST be.  If they are not, a GP fault will occur.\r
                 FXSTOR_EDI\r
 \r
+;; UEFI calling convention for IA32 requires that Direction flag in EFLAGs is clear\r
+                cld\r
+\r
 ;; UINT32  ExceptionData;\r
                 mov     eax, ExceptData\r
                 push    eax\r