2007-11-08 12:15:39 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS CRT
|
|
|
|
* FILE: lib/crt/misc/i386/prolog.s
|
|
|
|
* PURPOSE: SEH Support for the CRT
|
|
|
|
* PROGRAMMERS: Wine Development Team
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
|
2010-11-27 22:12:15 +00:00
|
|
|
#include <asm.inc>
|
|
|
|
#include <ks386.inc>
|
2007-11-08 12:15:39 +00:00
|
|
|
|
2010-11-27 22:12:15 +00:00
|
|
|
/* FUNCTIONS *****************************************************************/
|
|
|
|
.code
|
2007-11-08 12:15:39 +00:00
|
|
|
|
2010-11-27 22:12:15 +00:00
|
|
|
PUBLIC __EH_prolog
|
2007-11-08 12:15:39 +00:00
|
|
|
// Copied from Wine.
|
|
|
|
__EH_prolog:
|
2010-11-27 22:12:15 +00:00
|
|
|
push -1
|
|
|
|
push eax
|
|
|
|
push fs:0
|
|
|
|
mov fs:0, esp
|
|
|
|
mov eax, [esp + 12]
|
|
|
|
mov [esp + 12], ebp
|
|
|
|
lea ebp, [esp + 12]
|
|
|
|
push eax
|
2007-11-08 12:15:39 +00:00
|
|
|
ret
|
2010-11-27 22:12:15 +00:00
|
|
|
|
|
|
|
END
|