5 #include <dl-tlsdesc.h>
9 -- Abuse tls.h macros to derive offsets relative to the thread register.
11 TLSDESC_ARG offsetof(struct tlsdesc, arg)
12 TLSDESC_GEN_COUNT offsetof(struct tlsdesc_dynamic_arg, gen_count)
13 TLSDESC_MODID offsetof(struct tlsdesc_dynamic_arg, tlsinfo.ti_module)
14 TLSDESC_MODOFF offsetof(struct tlsdesc_dynamic_arg, tlsinfo.ti_offset)
15 TCBHEAD_DTV offsetof(tcbhead_t, dtv)
16 DTV_COUNTER offsetof(dtv_t, counter)
17 TLS_DTV_UNALLOCATED TLS_DTV_UNALLOCATED
18 TLS_DTV_OFFSET TLS_DTV_OFFSET
19 SIZE_OF_TCB sizeof(tcbhead_t)