Drop using _tlsbase and _tlstop in favor of access via NtCurrentTeb.
* cygtls.h (_tlsbase): Remove. Replace throughout with NtCurrentTeb()->Tib.StackBase. (_tlstop): Remove. Replace throughout with NtCurrentTeb()->Tib.StackLimit. * dcrt0.cc (child_info_fork::alloc_stack): Move definition of local teb variable up to be used throughout. * include/cygwin/config.h (__getreent): Use inline function on both architectures. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@ -42,7 +42,7 @@ munge_threadfunc ()
|
||||
if (!threadfunc_ix[0])
|
||||
{
|
||||
char **peb;
|
||||
char **top = (char **) _tlsbase;
|
||||
char **top = (char **) NtCurrentTeb()->Tib.StackBase;
|
||||
for (peb = ebp, i = 0; peb < top && i < 7; peb++)
|
||||
if (*peb == search_for)
|
||||
threadfunc_ix[i++] = peb - ebp;
|
||||
|
Reference in New Issue
Block a user