1 2 3 4 5 6 7 8
static inline uintptr_t __get_tp() { uintptr_t tp; __asm__ ("mov %%fs:0,%0" : "=r" (tp) ); return tp; } #define MC_PC gregs[REG_RIP]