http://bugs.winehq.org/show_bug.cgi?id=31308
--- Comment #6 from Anastasius Focht focht@gmx.net 2012-07-25 18:33:00 CDT --- Hello André,
I found several other inlined code snippets in the app that support the hypothesis that TPIDRURW contains most likely the TEB address for Windows on ARM:
--- snip --- ... .text:004354DC MRC p15, 0, R3,c13,c0, 2 .text:004354E0 LDR R3, [R3,#0x2C] .text:0043577C MOVS R7, #0 .text:0043577E CMP R0, #1 .text:00435780 LDR.W R2, [R3,R2,LSL#2] ; R2 = TLS index? --- snip ---
TEB+0x2C is the pointer to the TLS slots array on Windows x86.
Regards