Author: tfaber
Date: Thu May 30 21:53:06 2013
New Revision: 59120
URL:
http://svn.reactos.org/svn/reactos?rev=59120&view=rev
Log:
[PSEH2]
- Emulate a return from _SEH2EnterHandleTrylevel/_SEH2EnterFrameAndHandleTrylevel rather
than directly jumping to the handler in case of an exception. This prevents us from
invalidating compiler assumptions. Thanks to Timo.
Should fix GCC 4.7 bug with PSEH2 (CORE-7240).
Modified:
trunk/reactos/lib/pseh/i386/framebased-gcchack-asm.S
Modified: trunk/reactos/lib/pseh/i386/framebased-gcchack-asm.S
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/pseh/i386/framebased-g…
==============================================================================
--- trunk/reactos/lib/pseh/i386/framebased-gcchack-asm.S [iso-8859-1] (original)
+++ trunk/reactos/lib/pseh/i386/framebased-gcchack-asm.S [iso-8859-1] Thu May 30 21:53:06
2013
@@ -25,7 +25,7 @@
.globl __SEH2EnterHandleTrylevel
__SEH2EnterHandleTrylevel:
mov eax, [esp+8]
- mov ecx, [esp+12]
+ mov ecx, [esp]
mov [eax+8], ecx
mov [eax+16], ebp
mov [eax+20], ebx
@@ -43,7 +43,7 @@
.globl __SEH2EnterFrameAndHandleTrylevel
__SEH2EnterFrameAndHandleTrylevel:
mov eax, [esp+8]
- mov ecx, [esp+12]
+ mov ecx, [esp]
mov [eax+8], ecx
mov [eax+16], ebp
mov [eax+20], ebx