]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/AsmFuncs.asm
This revision can only work with Intel(c) UDK Debugger Tool version 1.2 or greater...
[mirror_edk2.git] / SourceLevelDebugPkg / Library / DebugAgent / DebugAgentCommon / Ia32 / AsmFuncs.asm
index 2d2fa5fc7a571642295dcad42a682f50112be921..6f3b3bc3d4803a8730d0a9306c08e1b0d85e54e4 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2010 - 2012, 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
@@ -283,6 +283,9 @@ NoExtrPush:
     mov edi, esp\r
     db 0fh, 0aeh, 00000111y ;fxsave [edi]\r
 \r
+    ;; save the exception data    \r
+    push    dword ptr [ebp + 8]\r
+\r
     ;; Clear Direction Flag\r
     cld\r
        \r
@@ -292,6 +295,9 @@ NoExtrPush:
     call    InterruptProcess\r
     add     esp, 8\r
 \r
+    ; skip the exception data\r
+    add     esp, 4\r
+\r
     ;; FX_SAVE_STATE_IA32 FxSaveState;\r
     mov esi, esp\r
     db 0fh, 0aeh, 00001110y ; fxrstor [esi]\r