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-13 22:34:32 +0300
committerChristopher Faylor <me@cgf.cx>2004-02-13 22:34:32 +0300
commitedc4f86ad282702ab7c029cf65b87ec616bda05e (patch)
tree2abde4171eaab1863d78128ba2ef6418485eff57 /winsup/cygwin/gendef
parentb3535c273043da91247840c4af64bb573d5517c4 (diff)
* Makefile.in (clean): Remove sigfe.s.
(sigfe.s): Ensure that sigfe.s will be regenerated if it does not exist. * dll_init.cc (dll_dllcrt0): Simplify initializing tests. * exceptions.cc (setup_handler): Detect when stub caller is either spinning or has acquired the lock after being suspended to avoid windows problems with suspending a win32 API call. * cygtls.h (_cygtls::spinning): Declare new element. * gendef: Remove unused _siglist_index and _siglist declaration. (_sigfe): Set spinning element when potentially looping, waiting for lock. (_sigbe): Ditto. (_cygtls::lock): Ditto. (_longjmp): Ditto. * tlsoffsets.h: Regenerate. * pinfo.cc (_pinfo::exit): Set final exit state here. Call sigproc_terminate if invoked with 'norecord'. Clear any residual _cygtls stuff. * winsup.h (exit_states): Define ES_FINAL. * spawn.cc (spawn_guts): Don't call proc_terminate specifically when execing. Let _pinfo::exit handle that case. * sigproc.cc (wait_subproc): Always exit loop early when proc_loop_wait. * init.cc (munge_threadfunc): Eliminate unused argument. (dll_entry): Reflect above change in call to munge_threadfunc.
Diffstat (limited to 'winsup/cygwin/gendef')
-rwxr-xr-xwinsup/cygwin/gendef5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/gendef b/winsup/cygwin/gendef
index 4395ac6de..22acf87df 100755
--- a/winsup/cygwin/gendef
+++ b/winsup/cygwin/gendef
@@ -76,8 +76,6 @@ sub fefunc {
my $fe = '_' . shift;
my $extra;
my $res = <<EOF;
- .extern _siglist_index
- .extern _siglist
.extern $func
.global $fe
$fe:
@@ -96,6 +94,7 @@ __sigfe:
1: movl %fs:4,%edx # location of bottom of stack
movl \$1,%eax # potential lock value
lock xchgl %eax,$tls::stacklock(%edx) # see if we can grab it
+ movl %eax,$tls::spinning(%edx) # flag if we are waiting for lock
orl %eax,%eax # it will be zero
jz 2f # if so
xorl %eax,%eax # nope. It was not zero
@@ -120,6 +119,7 @@ __sigbe:
1: movl %fs:4,%edx # address of bottom of tls
movl \$1,%eax # potential lock value
lock xchgl %eax,$tls::stacklock(%edx) # see if we can grab it
+ movl %eax,$tls::spinning(%edx) # flag if we are waiting for lock
orl %eax,%eax # it will be zero
jz 2f # if so
xorl %eax,%eax # nope. not zero
@@ -242,6 +242,7 @@ _longjmp:
1: movl %fs:4,%edx
movl \$1,%eax
lock xchgl %eax,$tls::stacklock(%edx)
+ movl %eax,$tls::spinning(%edx) # flag if we are waiting for lock
orl %eax,%eax
jz 2f
xorl %eax,%eax