diff options
Diffstat (limited to 'arch/microblaze/pthread_arch.h')
-rw-r--r-- | arch/microblaze/pthread_arch.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/microblaze/pthread_arch.h b/arch/microblaze/pthread_arch.h new file mode 100644 index 00000000..6c0ab5ad --- /dev/null +++ b/arch/microblaze/pthread_arch.h @@ -0,0 +1,8 @@ +static inline struct pthread *__pthread_self() +{ + struct pthread *self; + __asm__ __volatile__ ("ori %0, r21, 0" : "=r" (self) ); + return self; +} + +#define CANCEL_REG_IP 32 |