* init.cc (threadfunc_fe): Hack to make thread stacks always 16
byte aligned.
This commit is contained in:
parent
6194cf4a4b
commit
72f3756e07
|
@ -1,3 +1,8 @@
|
||||||
|
2004-04-30 DJ Delorie <dj@redhat.com>
|
||||||
|
|
||||||
|
* init.cc (threadfunc_fe): Hack to make thread stacks always 16
|
||||||
|
byte aligned.
|
||||||
|
|
||||||
2004-04-21 Yitzchak Scott-Thoennes <sthoenna@efn.org>
|
2004-04-21 Yitzchak Scott-Thoennes <sthoenna@efn.org>
|
||||||
|
|
||||||
* syscalls.cc (lseek64): Fix debug_printf format string.
|
* syscalls.cc (lseek64): Fix debug_printf format string.
|
||||||
|
|
|
@ -27,6 +27,8 @@ HANDLE sync_startup;
|
||||||
static void WINAPI
|
static void WINAPI
|
||||||
threadfunc_fe (VOID *arg)
|
threadfunc_fe (VOID *arg)
|
||||||
{
|
{
|
||||||
|
(void)__builtin_return_address(1);
|
||||||
|
asm volatile ("andl $-16,%%esp" ::: "%esp");
|
||||||
_cygtls::call ((DWORD (*) (void *, void *)) (((char **) _tlsbase)[OLDFUNC_OFFSET]), arg);
|
_cygtls::call ((DWORD (*) (void *, void *)) (((char **) _tlsbase)[OLDFUNC_OFFSET]), arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue