import vanilla x86_64 code as x32
This commit is contained in:
parent
0f169cbb79
commit
323272db17
75 changed files with 2677 additions and 0 deletions
10
arch/x32/pthread_arch.h
Normal file
10
arch/x32/pthread_arch.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
static inline struct pthread *__pthread_self()
|
||||
{
|
||||
struct pthread *self;
|
||||
__asm__ __volatile__ ("mov %%fs:0,%0" : "=r" (self) );
|
||||
return self;
|
||||
}
|
||||
|
||||
#define TP_ADJ(p) (p)
|
||||
|
||||
#define CANCEL_REG_IP 16
|
||||
Loading…
Add table
Add a link
Reference in a new issue