* init.cc (threadfunc_fe): Hack to make thread stacks always 16

byte aligned.
This commit is contained in:
Corinna Vinschen 2004-04-30 13:27:27 +00:00
parent 6194cf4a4b
commit 72f3756e07
2 changed files with 7 additions and 0 deletions

View File

@ -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.

View File

@ -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);
} }