pthread_arch.h\s390x\arch - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/arch/s390x/pthread_arch.h
blob: e54fec3fe64fa763ae5b0fbcae71ef62a953aa4f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
static inline uintptr_t __get_tp()
{
	uintptr_t tp;
	__asm__ (
		"ear %0, %%a0\n"
		"sllg %0, %0, 32\n"
		"ear %0, %%a1\n"
		: "=r"(tp));
	return tp;
}
#define MC_PC psw.addr
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月04日 00:39:45 +0000

AltStyle によって変換されたページ (->オリジナル) /