glibc/sysdeps/nptl
H.J. Lu 94afa0a5f3 Use __libc_ptf_call in _longjmp_unwind
Use __libc_ptf_call in _longjmp_unwind to avoid duplicated logic.  On
x86-64, I got

jmp-unwind.os:
_longjmp_unwind:
	movl	__libc_pthread_functions_init(%rip), %eax
	testl	%eax, %eax
	jne	.L4
	rep ret
.L4:
	movq	304+__libc_pthread_functions(%rip), %rax
	movq	%rsp, %rsi
	ror $2*8+1, %rax
	xor %fs:48, %rax
	jmp	*%rax

jmp-unwind.o:

_longjmp_unwind:
	movl	$__pthread_cleanup_upto, %eax
	testq	%rax, %rax
	je	.L1
	movq	%rsp, %rsi
	jmp	__pthread_cleanup_upto
.L1:
	rep ret

	* sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
	<nptl/pthreadP.h>.
	(_longjmp_unwind): Use __libc_ptf_call.
	* sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
2015-09-18 12:22:47 -07:00
..
sys Fix copyright year on new stub sys/procfs.h file. 2015-01-08 14:29:45 -08:00
aio_misc.h Add and use new glibc-internal futex API. 2015-07-10 13:47:09 +02:00
allocrtsig.c Include <signal.h> in sysdeps/nptl/allocrtsig.c 2015-01-29 10:00:25 +01:00
configure Fix unwind.h configure check for bare environment. 2014-07-03 21:46:59 -07:00
configure.ac Fix unwind.h configure check for bare environment. 2014-07-03 21:46:59 -07:00
fork.c Rename bits/stdio-lock.h to stdio-lock.h (bug 14912). 2015-09-04 16:21:14 +00:00
fork.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
futex-internal.h Add and use new glibc-internal futex API. 2015-07-10 13:47:09 +02:00
gai_misc.h Add and use new glibc-internal futex API. 2015-07-10 13:47:09 +02:00
Implies Get rid of nptl/sysdeps/pthread/ subdirectory 2014-06-12 13:48:47 -07:00
internaltypes.h Use uint64_t and (uint64_t) 1 for 64-bit int 2015-01-23 14:48:40 -08:00
jmp-unwind.c Use __libc_ptf_call in _longjmp_unwind 2015-09-18 12:22:47 -07:00
libc-lock.h Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912). 2015-09-08 21:11:03 +00:00
libc-lockP.h Use __pthread_setcancelstate in libc.a 2015-09-17 16:38:54 -07:00
librt-cancellation.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
lowlevellock-futex.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
lowlevellock.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Makeconfig Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
malloc-machine.h Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912). 2015-09-08 21:11:03 +00:00
nptl-signals.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pthread-functions.h Use __pthread_setcancelstate in libc.a 2015-09-17 16:38:54 -07:00
pthread.h NPTL: Remove duplicate definition of PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP 2015-03-28 01:50:12 -04:00
setxid.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
shm-directory.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sigfillset.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
stdio-lock.h Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912). 2015-09-08 21:11:03 +00:00
Subdirs Get rid of nptl/sysdeps/pthread/ subdirectory 2014-06-12 13:48:47 -07:00
tcb-offsets.h Get rid of nptl/sysdeps/pthread/ subdirectory 2014-06-12 13:48:47 -07:00
tst-mqueue8x.c Get rid of nptl/sysdeps/pthread/ subdirectory 2014-06-12 13:48:47 -07:00
unwind-forcedunwind.c ARM: Consolidate with generic unwinder wrapper code 2015-01-05 15:42:16 -08:00