From 48f7051c911181b554d7d0d63df75409633afa29 Mon Sep 17 00:00:00 2001 From: davek Date: Sun, 17 May 2009 20:07:18 +0000 Subject: * win32_threads.c (GC_get_thread_stack_base): Implement for Cygwin. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147641 138bc75d-0d04-0410-961f-82ee72b054a4 --- boehm-gc/ChangeLog | 4 ++++ boehm-gc/win32_threads.c | 6 ++++++ 2 files changed, 10 insertions(+) (limited to 'boehm-gc') diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog index ed6ee543650..d2a80cc1fcb 100644 --- a/boehm-gc/ChangeLog +++ b/boehm-gc/ChangeLog @@ -1,3 +1,7 @@ +2009-05-17 Dave Korn + + * win32_threads.c (GC_get_thread_stack_base): Implement for Cygwin. + 2009-03-01 Ralf Wildenhues * configure: Regenerate. diff --git a/boehm-gc/win32_threads.c b/boehm-gc/win32_threads.c index ba53d86fbd1..ffb34e0a8b1 100644 --- a/boehm-gc/win32_threads.c +++ b/boehm-gc/win32_threads.c @@ -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 */ /* -- cgit v1.2.1