1
0

pthread_arch.h 203 B

123456789101112
  1. static inline uintptr_t __get_tp()
  2. {
  3. return __syscall(SYS_get_thread_area);
  4. }
  5. #define TLS_ABOVE_TP
  6. #define GAP_ABOVE_TP 0
  7. #define TP_OFFSET 0x7000
  8. #define DTP_OFFSET 0x8000
  9. #define MC_PC gregs[R_PC]