diff options
author | Thomas Schwinge <thomas@schwinge.name> | 2011-10-20 12:56:29 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@schwinge.name> | 2011-10-20 12:56:29 +0200 |
commit | 127352671f6dca8572a8d310b162ccff32463ec5 (patch) | |
tree | c9ac850d55e28344d98f551fadadf8d19ff84a49 /libthreads/cthread_internals.h | |
parent | 04db20c2fb450fc27300991eb029888487b580a0 (diff) | |
parent | e24c161e9d16483a1d97402557f7756e26afb6cf (diff) | |
download | hurd-127352671f6dca8572a8d310b162ccff32463ec5.tar.gz hurd-127352671f6dca8572a8d310b162ccff32463ec5.tar.bz2 hurd-127352671f6dca8572a8d310b162ccff32463ec5.zip |
Merge branch 'tls/libthreads'
Conflicts:
libthreads/ChangeLog
Diffstat (limited to 'libthreads/cthread_internals.h')
-rw-r--r-- | libthreads/cthread_internals.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/libthreads/cthread_internals.h b/libthreads/cthread_internals.h index eec336cf..81e3b91c 100644 --- a/libthreads/cthread_internals.h +++ b/libthreads/cthread_internals.h @@ -161,6 +161,14 @@ # endif #endif +/* Type of the TCB. */ +typedef struct +{ + void *tcb; /* Points to this structure. */ + void *dtv; /* Vector of pointers to TLS data. */ + thread_t self; /* This thread's control port. */ +} tcbhead_t; + /* * Low-level thread implementation. * This structure must agree with struct ur_cthread in cthreads.h @@ -307,4 +315,10 @@ extern void cproc_prepare(cproc_t _child, void (*cthread_body_pc)()); extern void cproc_setup(cproc_t _child, thread_t _mach_thread, - void (*_routine)(cproc_t)); + tcbhead_t *tcb, void (*_routine)(cproc_t)); + + +/* From glibc. */ + +/* Dynamic linker TLS allocation. */ +extern void *_dl_allocate_tls(void *); |