summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-11-19 11:27:19 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-11-19 11:27:19 +0100
commitf1fd3dfa6db831e56433a6982fb9419cbfc674ec (patch)
treec2bc0634f1d347b58503a09edbd655dc35765229 /hurd
parentd06542def74414c59b7a4a2bcdeea5b44d0f2428 (diff)
parent1575fef50c27064e826beecf41809bf247a1f8e4 (diff)
Merge commit 'refs/top-bases/tschwinge/Roger_Whittaker' into tschwinge/Roger_Whittaker
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurd/threadvar.h17
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;