diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-11-19 11:11:21 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-11-19 11:11:21 +0100 |
commit | 2c9e5674b31c43f4415fe2709a5cfd7ea0c0a4a0 (patch) | |
tree | 529275e2f433e2ca912b02ea254aa29aad1c7d59 /hurd/hurd/threadvar.h | |
parent | 7c08c364b85d24b32460cba978edcecc98722973 (diff) |
Note that we don't use __hurd_threadvar_stack_mask and __hurd_threadvar_stack_offset any more
Diffstat (limited to 'hurd/hurd/threadvar.h')
-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; |