;/** @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
; 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
;/** @file\r
; Low level x64 routines used by the debug support driver.\r
;\r
-; Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2007 - 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
FXSTOR_RDI\r
\r
+;; UEFI calling convention for x64 requires that Direction flag in EFLAGs is clear\r
+ cld\r
+\r
;; UINT64 ExceptionData;\r
mov rax, ExceptData\r
push rax\r
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
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
TITLE CpuAsm.asm: \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
mov rdi, rsp\r
db 0fh, 0aeh, 07h ;fxsave [rdi]\r
\r
+;; UEFI calling convention for x64 requires that Direction flag in EFLAGs is clear\r
+ cld\r
+\r
;; UINT32 ExceptionData;\r
push qword ptr [rbp + 16]\r
\r