File: pthread_arch.h

package info (click to toggle)
wasi-libc 0.0~git20241209.574b88d-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 15,284 kB
  • sloc: ansic: 100,593; asm: 6,743; makefile: 1,089; sh: 824; awk: 301; python: 67; sed: 9
file content (8 lines) | stat: -rw-r--r-- 138 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
static inline uintptr_t __get_tp()
{
	uintptr_t tp;
	__asm__ ("movl %%gs:0,%0" : "=r" (tp) );
	return tp;
}

#define MC_PC gregs[REG_EIP]