diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-11-19 11:26:49 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-11-19 11:26:49 +0100 |
commit | 2f009afa8ce7f58c518ac5b522fee6726cfcfd34 (patch) | |
tree | 5785d5fe08e73cb4254c6ae9cef1ad47232fb9f4 /hurd/hurd | |
parent | 2ebb1a8733bef6ac81a740a40311d8827caec419 (diff) | |
parent | 2d049c4f1391b903703961132ef92710c6d8ff67 (diff) |
Merge branch 't/tls-threadvar' into refs/top-bases/tschwinge/Roger_Whittaker
Diffstat (limited to 'hurd/hurd')
-rw-r--r-- | hurd/hurd/threadvar.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/hurd/hurd/threadvar.h b/hurd/hurd/threadvar.h index 1c40af6cfc..ff43598d2c 100644 --- a/hurd/hurd/threadvar.h +++ b/hurd/hurd/threadvar.h @@ -22,21 +22,6 @@ #include <features.h> #include <tls.h> -/* The per-thread variables are found by ANDing this mask - with the value of the stack pointer and then adding this offset. - - In the multi-threaded case, cthreads initialization sets - __hurd_threadvar_stack_mask to ~(cthread_stack_size - 1), a mask which - finds the base of the fixed-size cthreads stack; and - __hurd_threadvar_stack_offset to a small offset that skips the data - cthreads itself maintains at the base of each thread's stack. - - In the single-threaded or libpthread case, __hurd_threadvar_stack_mask is - zero, so the stack pointer is ignored. */ - -extern unsigned long int __hurd_threadvar_stack_mask; -extern unsigned long int __hurd_threadvar_stack_offset; - /* The variables __hurd_sigthread_stack_base and __hurd_sigthread_stack_end define the bounds of the stack used by the signal thread, so that thread can always be specifically identified. */ @@ -46,6 +31,8 @@ extern unsigned long int __hurd_sigthread_stack_end; /* We do not use threadvars any more, this is kept as zero for compatibility with cthreads */ +extern unsigned long int __hurd_threadvar_stack_mask; +extern unsigned long int __hurd_threadvar_stack_offset; extern unsigned int __hurd_threadvar_max; extern mach_port_t __hurd_reply_port0; |