1
0

pthread_arch.h 178 B

123456789101112
  1. static inline uintptr_t __get_tp()
  2. {
  3. uintptr_t tp;
  4. __asm__ (
  5. "ear %0, %%a0\n"
  6. "sllg %0, %0, 32\n"
  7. "ear %0, %%a1\n"
  8. : "=r"(tp));
  9. return tp;
  10. }
  11. #define MC_PC psw.addr