看板 DFBSD_commit 關於我們 聯絡資訊
: :On Tue, Mar 29, 2005 at 11:26:20AM -0800, Joerg Sonnenberger wrote: :> joerg 2005/03/29 11:26:20 PST :> :> Added files: :> sys/i386/include tls.h : :I'm open for any advice how to teach GCC to create correct assembly :for the #if'd out sections. : :Joerg As far as GAS is concerned, it's a memory effective address (remove the %gs: prefix and it becomes clear). So: __asm __volatile ("movl %%gs:%1,%0" : "=r" (self) : "m" (((struct tls_tcb *)0)->self)); -Matt Matthew Dillon <dillon@backplane.com>