blob: c424493a350dd7420dbf5845b2f9462b56774a9d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
static inline struct pthread *__pthread_self()
{
struct pthread *self;
__asm__ ("movq %%fs:0,%0" : "=r" (self) );
return self;
}
#define CANCEL_REG_SP 15
#define CANCEL_REG_IP 16
|