diff options
Diffstat (limited to 'winsup/cygwin/gendef')
-rwxr-xr-x | winsup/cygwin/gendef | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/gendef b/winsup/cygwin/gendef index b31d71b3a..4f60ea686 100755 --- a/winsup/cygwin/gendef +++ b/winsup/cygwin/gendef @@ -104,10 +104,14 @@ __sigfe_maybe: pushl %ebx pushl %edx movl %fs:4,%ebx # location of bottom of stack + addl \$$tls::initialized,%ebx # where we will be looking + cmpl %ebx,%esp # stack loc > than tls + jge 0f # yep. we don't have a tls. + subl \$$tls::initialized,%ebx # where we will be looking movl $tls::initialized(%ebx),%eax cmpl \$0xc763173f,%eax # initialized? je 1f - popl %edx +0: popl %edx popl %ebx ret |