]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/CpuDxe/Ia32/CpuAsm.asm
Clear the direction flag in interrupt/exception handlers' assembly entry code before...
[mirror_edk2.git] / UefiCpuPkg / CpuDxe / Ia32 / CpuAsm.asm
index 68454bdeca1348e1765e68bc7b37068fc15a85b9..a279e6ab5ada4c80674071ffbb1f66bf3f21a555 100644 (file)
@@ -1,7 +1,7 @@
       TITLE   CpuAsm.asm:\r
 ;------------------------------------------------------------------------------\r
 ;*\r
-;*   Copyright (c) 2006 - 2010, 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
@@ -272,6 +272,9 @@ ErrorCodeAndVectorOnStack:
     mov     edi, esp\r
     db      0fh, 0aeh, 07h ;fxsave [edi]\r
 \r
+;; UEFI calling convention for IA32 requires that Direction flag in EFLAGs is clear\r
+    cld\r
+\r
 ;; UINT32  ExceptionData;\r
     push    dword ptr [ebp + 2 * 4]\r
 \r