#/**@file\r
# Low leve IA32 specific debug support functions.\r
#\r
-# Copyright (c) 2006 - 2008, 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
# They MUST be. If they are not, a GP fault will occur.\r
fxsave (%edi)\r
\r
+## UEFI calling convention for IA32 requires that Direction flag in EFLAGs is clear\r
+ cld\r
+ \r
## UINT32 ExceptionData;\r
mov 0x0,%eax\r
push %eax\r
///**@file
// Low leve x64 specific debug support functions.
//
-// Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
+// Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
// Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
// This program and the accompanying materials
// are licensed and made available under the terms and conditions of the BSD License
# FXSTOR_RDI
fxsave (%rdi)
+// UEFI calling convention for x64 requires that Direction flag in EFLAGs is clear
+ cld
+
// UINT64 ExceptionData;
movq ASM_PFX(ExceptData)(%rip), %rax
pushq %rax
#------------------------------------------------------------------------------\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
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
\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
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