Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-02-12 07:55:29 +0300
committerChristopher Faylor <me@cgf.cx>2004-02-12 07:55:29 +0300
commitb3535c273043da91247840c4af64bb573d5517c4 (patch)
treee0833c5b5f862296db154e5e0def0ef3d9cfd860 /winsup/cygwin/gendef
parentb91faaabea22917018019f762b41272fc81965e4 (diff)
* gendef (_sigbe): Zero location on pop.
(_cygtls::pop): Ditto.
Diffstat (limited to 'winsup/cygwin/gendef')
-rwxr-xr-xwinsup/cygwin/gendef6
1 files changed, 2 insertions, 4 deletions
diff --git a/winsup/cygwin/gendef b/winsup/cygwin/gendef
index 72afbc1c9..4395ac6de 100755
--- a/winsup/cygwin/gendef
+++ b/winsup/cygwin/gendef
@@ -127,8 +127,7 @@ __sigbe:
jmp 1b # and loop
2: movl \$-4,%eax # now decrement aux stack
xadd %eax,$tls::stackptr(%edx) # and get pointer
-# xorl %ebx,%ebx
- movl \$0x41774177,%ebx
+ xorl %ebx,%ebx
xchgl %ebx,-4(%eax) #
xchgl %ebx,8(%esp)
decl $tls::stacklock(%edx) # release lock
@@ -143,8 +142,7 @@ __ZN7_cygtls3popEv:
movl %eax,%edx
movl \$-4,%ebx
xadd %ebx,$tls::pstackptr(%edx)
-# xorl %eax,%eax
- movl 8(%esp),%eax
+ xorl %eax,%eax
xchgl %eax,-4(%ebx)
popl %edx # FIXME: needed?
popl %ebx