1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

powerpc: Fix clone CLONE_VM compare

This patch fixes the clone CLONE_VM change from 0cb313f (BZ#19957)
where the commit changed the register that contains the save flags
argument to compare with (from r28 to r29).  This patch changes
back to correct register.

Tested on powerpc32 (thanks to Tulio Magno Quites Machado Filho).

	* sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
	flags CLONE_VM compare.
This commit is contained in:
Adhemerval Zanella
2016-05-02 17:44:00 -03:00
parent 8a03ccbb77
commit 230528c467
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2016-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
* sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
flags CLONE_VM compare.
2016-05-02 Florian Weimer <fweimer@redhat.com> 2016-05-02 Florian Weimer <fweimer@redhat.com>
[BZ #20031] [BZ #20031]

View File

@ -77,7 +77,7 @@ ENTRY (__clone)
bne- cr1,L(parent) /* The '-' is to minimise the race. */ bne- cr1,L(parent) /* The '-' is to minimise the race. */
/* If CLONE_VM is set do not update the pid/tid field. */ /* If CLONE_VM is set do not update the pid/tid field. */
andi. r0,r29,CLONE_VM andi. r0,r28,CLONE_VM
bne+ cr0,L(oldpid) bne+ cr0,L(oldpid)
DO_CALL(SYS_ify(getpid)) DO_CALL(SYS_ify(getpid))