mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-30 12:31:53 +08:00
tile: Consolidate NPTL/non versions of vfork
This commit is contained in:
parent
c9cab3d2f9
commit
c3a2ebe1f7
@ -1,3 +1,11 @@
|
||||
2014-06-11 Chris Metcalf <cmetcalf@tilera.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
|
||||
* sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
|
||||
* sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
|
||||
conditional code always true.
|
||||
(__libc_vfork): New alias.
|
||||
|
||||
2014-06-11 Roland McGrath <roland@hack.frob.com>
|
||||
|
||||
* sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
|
||||
|
@ -1,2 +0,0 @@
|
||||
#define PT_VFORK 1 /* pid is never zero */
|
||||
#include "vfork.S"
|
1
sysdeps/unix/sysv/linux/tile/pt-vfork.c
Normal file
1
sysdeps/unix/sysv/linux/tile/pt-vfork.c
Normal file
@ -0,0 +1 @@
|
||||
#include <sysdeps/unix/sysv/linux/aarch64/pt-vfork.c>
|
@ -38,9 +38,7 @@ ENTRY (__vfork)
|
||||
shli r13, r13, 31 /* Build 0x80000000. */
|
||||
}
|
||||
sub r12, zero, r12 /* Negate it. */
|
||||
#ifndef PT_VFORK
|
||||
CMOVEQZ r12, r12, r13 /* Replace zero pids. */
|
||||
#endif
|
||||
ST4 r11, r12 /* Store the temporary PID. */
|
||||
|
||||
{
|
||||
@ -67,9 +65,7 @@ ENTRY (__vfork)
|
||||
CMPEQ r13, r12, r12 /* Test for that value. */
|
||||
sub r12, zero, r12 /* Re-negate it. */
|
||||
}
|
||||
#ifndef PT_VFORK
|
||||
CMOVNEZ r12, r13, zero /* Replace zero pids. */
|
||||
#endif
|
||||
ST4 r11, r12 /* Restore the PID. */
|
||||
1:
|
||||
BNEZ r1, 0f
|
||||
@ -78,3 +74,4 @@ PSEUDO_END (__vfork)
|
||||
libc_hidden_def (__vfork)
|
||||
|
||||
weak_alias (__vfork, vfork)
|
||||
strong_alias (__vfork, __libc_vfork)
|
||||
|
Loading…
Reference in New Issue
Block a user