alpha: Fix clone exit syscall argument passing (BZ#21512)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 19 Jul 2017 14:45:37 +0000 (11:45 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 19 Jul 2017 17:24:43 +0000 (14:24 -0300)
This patch fixes the argument passing for exit syscall after
the clone function returns on hppa.  This fixes misc/tst-clone2
on alpha-linux-gnu.

Checked misc/tst-clone2 on alpha-linux-gnu.

[BZ #21512]
* sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Fix argument
passing to syscall exit.

ChangeLog
sysdeps/unix/sysv/linux/alpha/clone.S

index 8618e26..4a2ad6e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-07-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Fix argument
+       passing to syscall exit.
+
 2017-07-19  DJ Delorie  <dj@delorie.com>
 
        * grp/grp-merge.c (libc_hidden_def): Fix cast-after-dereference.
index 550461f..e7ee0af 100644 (file)
@@ -98,6 +98,7 @@ thread_start:
        jsr     ra, (pv)
        ldgp    gp, 0(ra)
 
+       mov     v0, a0
        ldiq    v0, __NR_exit
        call_pal PAL_callsys