finish unifying thread register handling in preparation for porting

This commit is contained in:
Rich Felker 2011-02-15 03:56:52 -05:00
commit 7b2dd2235d
7 changed files with 34 additions and 53 deletions

6
arch/i386/pthread_arch.h Normal file
View file

@ -0,0 +1,6 @@
static inline struct pthread *__pthread_self()
{
struct pthread *self;
__asm__ ("movl %%gs:0,%0" : "=r" (self) );
return self;
}