finish unifying thread register handling in preparation for porting
This commit is contained in:
parent
0b2006c8fe
commit
7b2dd2235d
7 changed files with 34 additions and 53 deletions
6
arch/i386/pthread_arch.h
Normal file
6
arch/i386/pthread_arch.h
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
static inline struct pthread *__pthread_self()
|
||||
{
|
||||
struct pthread *self;
|
||||
__asm__ ("movl %%gs:0,%0" : "=r" (self) );
|
||||
return self;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue