OSDN Git Service

* win32_threads.c (GC_get_thread_stack_base): Implement for Cygwin.
authordavek <davek@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 17 May 2009 20:07:18 +0000 (20:07 +0000)
committerdavek <davek@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 17 May 2009 20:07:18 +0000 (20:07 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147641 138bc75d-0d04-0410-961f-82ee72b054a4

boehm-gc/ChangeLog
boehm-gc/win32_threads.c

index ed6ee54..d2a80cc 100644 (file)
@@ -1,3 +1,7 @@
+2009-05-17  Dave Korn  <dave.korn.cygwin@gmail.com>
+
+       * win32_threads.c (GC_get_thread_stack_base):  Implement for Cygwin.
+
 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * configure: Regenerate.
index ba53d86..ffb34e0 100644 (file)
@@ -753,6 +753,12 @@ int GC_pthread_detach(pthread_t thread)
     return result;
 }
 
+GC_PTR GC_get_thread_stack_base()
+{
+  extern GC_PTR _tlsbase __asm__ ("%fs:4");
+  return _tlsbase;
+}
+
 #else /* !CYGWIN32 */
 
 /*