From d500130f313572651e1d299f1677f8d677060fb2 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Wed, 19 Jul 2017 11:45:37 -0300 Subject: alpha: Fix clone exit syscall argument passing (BZ#21512) 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. --- sysdeps/unix/sysv/linux/alpha/clone.S | 1 + 1 file changed, 1 insertion(+) (limited to 'sysdeps/unix') diff --git a/sysdeps/unix/sysv/linux/alpha/clone.S b/sysdeps/unix/sysv/linux/alpha/clone.S index 550461fb3b..e7ee0af258 100644 --- a/sysdeps/unix/sysv/linux/alpha/clone.S +++ b/sysdeps/unix/sysv/linux/alpha/clone.S @@ -98,6 +98,7 @@ thread_start: jsr ra, (pv) ldgp gp, 0(ra) + mov v0, a0 ldiq v0, __NR_exit call_pal PAL_callsys -- cgit 1.4.1