diff options
author | Christopher Faylor <me@cgf.cx> | 2001-11-30 06:19:58 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-11-30 06:19:58 +0000 |
commit | 1cf0d8510a4102506ce84dab72ca3381757bb106 (patch) | |
tree | 9624b673564ffdd0183eb37ee184d56085790083 /winsup/cygwin/perthread.h | |
parent | 8569e5542e4fa276337260b920bc17aea49d9cc4 (diff) | |
download | cygnal-1cf0d8510a4102506ce84dab72ca3381757bb106.tar.gz cygnal-1cf0d8510a4102506ce84dab72ca3381757bb106.tar.bz2 cygnal-1cf0d8510a4102506ce84dab72ca3381757bb106.zip |
* debug.cc (makethread): Eliminate unneeded function call.
* miscfuncs.cc (tls_ix): Predefine.
* perthread.h (set_reent): Eliminate.
(get_reent): Ditto.
* winbase.h (my_tlsalloc): Use global stack base pointer. Set newly allocated
location to NULL.
(my_tlssetvalue): Use global stack base pointer.
(my_tlsgetvalue): Ditto.
Diffstat (limited to 'winsup/cygwin/perthread.h')
-rw-r--r-- | winsup/cygwin/perthread.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/winsup/cygwin/perthread.h b/winsup/cygwin/perthread.h index 185cc04d6..48ad97621 100644 --- a/winsup/cygwin/perthread.h +++ b/winsup/cygwin/perthread.h @@ -15,27 +15,6 @@ details. */ struct _reent; extern struct _reent reent_data; -extern DWORD *__stackbase __asm__ ("%fs:4"); - -extern __inline struct _reent * -get_reent () -{ - DWORD *base = __stackbase - 1; - - if (*base != PTMAGIC) - return &reent_data; - return (struct _reent *) base[-1]; -} - -extern inline void -set_reent (struct _reent *r) -{ - DWORD *base = __stackbase - 1; - - *base = PTMAGIC; - base[-1] = (DWORD) r; -} - #define PER_THREAD_FORK_CLEAR ((void *)0xffffffff) class per_thread { |