]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/CpuDxe/X64/CpuAsm.S
A complement fix for revision 11664 to update GCC assembly files : clear the directio...
[mirror_edk2.git] / UefiCpuPkg / CpuDxe / X64 / CpuAsm.S
index 8f191320a8e6f81e1d1b371059742e8b645eb619..f1481d85d61ea456c2d5828950862da7c91c38b8 100644 (file)
@@ -2,7 +2,7 @@
 \r
 #------------------------------------------------------------------------------\r
 #*\r
-#*   Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>\r
+#*   Copyright (c) 2008 - 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
@@ -234,6 +234,9 @@ CommonInterruptEntry_al_0000:
     movq    %rsp, %rdi\r
     .byte 0x0f, 0x0ae, 0x07 #fxsave [rdi]\r
 \r
+#; UEFI calling convention for x64 requires that Direction flag in EFLAGs is clear\r
+    cld\r
+\r
 #; UINT32  ExceptionData;\r
     pushq   16(%rbp)\r
 \r