]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/CpuDxe/Ia32/CpuAsm.S
A complement fix for revision 11664 to update GCC assembly files : clear the directio...
[mirror_edk2.git] / UefiCpuPkg / CpuDxe / Ia32 / CpuAsm.S
index d3e1dee624096da54bfbc3c4c950830cfe12b1ee..38f46ab335d7bb8cc152a0f6c466a4233cfae4b5 100644 (file)
@@ -1,6 +1,6 @@
 #------------------------------------------------------------------------------\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
@@ -274,6 +274,9 @@ ErrorCodeAndVectorOnStack:
     movl    %esp, %edi\r
     .byte      0x0f, 0x0ae, 0x07 #fxsave [edi]\r
 \r
+#; UEFI calling convention for IA32 requires that Direction flag in EFLAGs is clear\r
+    cld\r
+\r
 #; UINT32  ExceptionData;\r
     pushl   8(%ebp)\r
 \r