* dcrt0.cc (_dll_crt0): Fix formatting.
This commit is contained in:
parent
d329320822
commit
988d896c0a
|
@ -1,3 +1,7 @@
|
||||||
|
2011-12-17 Corinna Vinschen <vinschen@redhat.com>
|
||||||
|
|
||||||
|
* dcrt0.cc (_dll_crt0): Fix formatting.
|
||||||
|
|
||||||
2011-12-17 Corinna Vinschen <vinschen@redhat.com>
|
2011-12-17 Corinna Vinschen <vinschen@redhat.com>
|
||||||
|
|
||||||
* wow64.cc (wow64_revert_to_original_stack): Fix comment.
|
* wow64.cc (wow64_revert_to_original_stack): Fix comment.
|
||||||
|
|
|
@ -958,17 +958,14 @@ _dll_crt0 ()
|
||||||
PVOID stackaddr = wow64_revert_to_original_stack (allocationbase);
|
PVOID stackaddr = wow64_revert_to_original_stack (allocationbase);
|
||||||
if (stackaddr)
|
if (stackaddr)
|
||||||
{
|
{
|
||||||
/* 2nd half of the stack move. First set stack pointers to
|
/* 2nd half of the stack move. Set stack pointers to new address. */
|
||||||
our new address. */
|
|
||||||
__asm__ ("\n\
|
__asm__ ("\n\
|
||||||
movl %[ADDR], %%esp \n\
|
movl %[ADDR], %%esp \n\
|
||||||
movl %%esp, %%ebp \n"
|
movl %%esp, %%ebp \n"
|
||||||
: : [ADDR] "r" (stackaddr));
|
: : [ADDR] "r" (stackaddr));
|
||||||
/* Now we're back on the original stack. Free up space taken by the
|
/* Now we're back on the original stack. Free up space taken by the
|
||||||
former main thread stack and... */
|
former main thread stack and set DeallocationStack correctly. */
|
||||||
VirtualFree (NtCurrentTeb ()->DeallocationStack,
|
VirtualFree (NtCurrentTeb ()->DeallocationStack, 0, MEM_RELEASE);
|
||||||
0, MEM_RELEASE);
|
|
||||||
/* ...set DeallocationStack correctly. */
|
|
||||||
NtCurrentTeb ()->DeallocationStack = allocationbase;
|
NtCurrentTeb ()->DeallocationStack = allocationbase;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue