mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
Revert my last changes.
svn path=/trunk/; revision=15042
This commit is contained in:
@@ -275,6 +275,7 @@ BOOL STDCALL CreateProcessA(LPCSTR lpApplicationName,
|
||||
return bRetVal;
|
||||
}
|
||||
|
||||
|
||||
static EXCEPTION_DISPOSITION __cdecl
|
||||
_except_handler(EXCEPTION_RECORD *ExceptionRecord,
|
||||
void * EstablisherFrame,
|
||||
@@ -322,34 +323,14 @@ BaseProcessStart(LPTHREAD_START_ROUTINE lpStartAddress,
|
||||
DWORD lpParameter)
|
||||
{
|
||||
UINT uExitCode = 0;
|
||||
#if 1
|
||||
PVOID OldHandler;
|
||||
#endif
|
||||
|
||||
DPRINT("BaseProcessStart(..) - setting up exception frame.\n");
|
||||
|
||||
#if 1
|
||||
__asm__ __volatile__ ("movl %%fs:0, %0\n\t" \
|
||||
"movl %1, %%fs:0\n\t" \
|
||||
: "=r" (OldHandler)
|
||||
: "r" (_except_handler));
|
||||
#else
|
||||
/* FIXME:
|
||||
* We cannot use push (__try1) and pop (__except1).
|
||||
* Gcc doesn't like it, if anyone changes the stack layout.
|
||||
*/
|
||||
__try1(_except_handler)
|
||||
#endif
|
||||
{
|
||||
uExitCode = (lpStartAddress)((PVOID)lpParameter);
|
||||
}
|
||||
#if 1
|
||||
__asm__ __volatile__ ("movl %0, %%fs:0\n\t" \
|
||||
:
|
||||
: "r" (OldHandler));
|
||||
#else
|
||||
__except1
|
||||
#endif
|
||||
} __except1
|
||||
|
||||
ExitProcess(uExitCode);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user