aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-04-15 17:38:02 +0000
committerChristopher Faylor <me@cgf.cx>2004-04-15 17:38:02 +0000
commitee0afa428ad54d071cbb47df241d6336461c1922 (patch)
treee6ec37f1683c552cad358c6e842fb24dc33959a6 /winsup/cygwin
parent703b16e3ab18de843b5dee7a8c2cf552b2f7540e (diff)
downloadnewlib-ee0afa428ad54d071cbb47df241d6336461c1922.zip
newlib-ee0afa428ad54d071cbb47df241d6336461c1922.tar.gz
newlib-ee0afa428ad54d071cbb47df241d6336461c1922.tar.bz2
* autoload.cc (dll_chain1): Rename to dll_chain. Remove old dll_chain code.
(wsock_init): Avoid unneeded winsock_active tests. * winsup.h (winsock_active): Delete.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog7
-rw-r--r--winsup/cygwin/autoload.cc17
2 files changed, 11 insertions, 13 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 982b4cf..f856ed0 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,10 @@
+2004-04-15 Christopher Faylor <cgf@alum.bu.edu>
+
+ * autoload.cc (dll_chain1): Rename to dll_chain. Remove old dll_chain
+ code.
+ (wsock_init): Avoid unneeded winsock_active tests.
+ * winsup.h (winsock_active): Delete.
+
2004-04-15 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_disk_file::fchmo): Try opening
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc
index dc4ef96..7e9e715 100644
--- a/winsup/cygwin/autoload.cc
+++ b/winsup/cygwin/autoload.cc
@@ -106,9 +106,6 @@ extern "C" void dll_func_load () __asm__ ("dll_func_load");
functions from this DLL. */
extern "C" void dll_chain () __asm__ ("dll_chain");
-/* called by the secondary initialization function to call dll_func_load. */
-extern "C" void dll_chain1 () __asm__ ("dll_chain1");
-
extern "C" {
/* FIXME: This is not thread-safe? */
@@ -165,12 +162,6 @@ gotit: \n\
.global dll_chain \n\
dll_chain: \n\
pushl %eax # Restore 'return address' \n\
- movl (%eax),%eax # Get address of DLL info block \n\
- movl $dll_func_load,(%eax) # Just load func now \n\
- jmp *%edx # Jump to next init function \n\
- \n\
-dll_chain1: \n\
- pushl %eax # Restore 'return address' \n\
jmp *%edx # Jump to next init function \n\
");
@@ -264,7 +255,7 @@ wsock_init ()
low_priority_sleep (0);
}
- if (!wsock_started && (winsock_active || winsock2_active))
+ if (!wsock_started)
{
/* Don't use autoload to load WSAStartup to eliminate recursion. */
int (*wsastartup) (int, WSADATA *);
@@ -290,13 +281,13 @@ wsock_init ()
InterlockedDecrement (&here);
- /* Kludge alert. Redirects the return address to dll_chain1. */
+ /* Kludge alert. Redirects the return address to dll_chain. */
__asm__ __volatile__ (" \n\
- movl $dll_chain1,4(%ebp) \n\
+ movl $dll_chain,4(%ebp) \n\
");
volatile retchain ret;
- /* Set "arguments for dll_chain1. */
+ /* Set "arguments for dll_chain. */
ret.low = (long) dll_func_load;
ret.high = (long) func;
return ret.ll;