From patchwork Mon Jul 17 14:48:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 107969 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp4612538qge; Mon, 17 Jul 2017 07:49:15 -0700 (PDT) X-Received: by 10.99.107.135 with SMTP id g129mr30037905pgc.179.1500302955321; Mon, 17 Jul 2017 07:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500302955; cv=none; d=google.com; s=arc-20160816; b=Xsjy1t3UVvTTkfC80J5UCLD56DwiWA7gbmp0dxrP9pA2PcihvlcohQ/ox/eKoYc66T trd3PebfhgXJi2LSKFef/qhMeuC9G3NplgdWbdo/iemUrh5XdM7xOXCHPD6opVUvIWec Qa3yM64I+rJZhfOAwl3nywbxoyT9DKiBDfkfVIt9X67OaTmsNqhcQEYdDp33vJS5ZD1w 9sIdkPvqpZ41/N5DGdd/VHFiNX16RwoVkviLkAde4r6nacEDHRQAXfREfeJ9mlk7+IgJ vpIQDuh235v52oF9GqZUHcGE7mxhUoaBVY96gp29ZfDu1gqG1gkGBoAgQFyrjo26+Geq sGWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:delivered-to:sender:list-help :list-post:list-archive:list-subscribe:list-unsubscribe:list-id :precedence:mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=EI9f1BqboxDzxSqbo+C3RMiGQR/f3g56csGJTvKp1BU=; b=PJG8IvjWxfPnO9qVaiC9xEzSAaE7+V1xhyS8GMHWV6tyzdx/DSo+bS6ijHXl61nAyB ExUBCIqWRal2+xbUy6uoiwIUHsjDnOH0JH4Lr8uHXm8H0kik+oLHIz3xcE48GHjvTBVl aZhelo1fs07OaoVlm3ow1Uju8SB6wTEhoMQFZlhuqgTKQjG3WtNAkUzyVdX40YZbwqDX 8VqPwR9CNEzgviLBvb1PoU4Ywv9mzuxw0a55RaWaZuGTUx654EzJlRdqHDvslSJw1F5I snRNZJyuILPbquU5LwfBHP+oL43dS05vIcYNn31fSUhJ/fBUxyPt2jkCpzzh7GzPmJGW 97Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.b=lw3Pzdgt; spf=pass (google.com: domain of libc-alpha-return-82157-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-82157-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id b5si2126558plk.405.2017.07.17.07.49.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jul 2017 07:49:15 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-82157-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.b=lw3Pzdgt; spf=pass (google.com: domain of libc-alpha-return-82157-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-82157-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=mykDdRlPoqldbdb9hfyThRNcGZArNqTjXdaPnh05oelW68NMEH0cw iBVhJ/KonMSz3+VroAE5pm2tttrRAApz6aSi3TXgYDLCsM9WKxhbkb2EwCvXlty0 tRPEcqx059cs47sfRu4WcPucjXuUz8CWj+ielqP/+9wMUHNh7sRIhQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=1T8NU1cHEPjyb282qSq0aiR7ALk=; b=lw3Pzdgt0YAw/DGDXLjlDGLswiVz ZL06EEh+UP9HjyZnnKKw3YJqrTj1Ddtd2mfvjR/k1inOzaUD/jsrN5F6LEtZwtde HZD+FgUzzdlTFpUiWbVFoTv0ZDot9nOl6L+eaYr3Z5CPYUm0RKrLjADwQRz4lf0S xh8TI20svlXF7uE= Received: (qmail 1015 invoked by alias); 17 Jul 2017 14:49:04 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 982 invoked by uid 89); 17 Jul 2017 14:49:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-27.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-qt0-f179.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=EI9f1BqboxDzxSqbo+C3RMiGQR/f3g56csGJTvKp1BU=; b=FrZI0qwh8CPsnJbt7sWOWAniYj3TH9FrXYm6WP/hpR9bWkXNfku0qDeG3tt5it+nc4 N6HZ3vWKqSL5c9kRLclVH07j6Mwn/vEx+PAejh7PpxrtY1oWIBCDpxipAKjZLCifYLoj syMmNgAYPcYwrnAYCMmk9858TbbWXio+ug7jMSS5sRhWbBhlhadzPr/vZarNX/8ePZNr HpEOX3v16agjeqq5yJce82HXTRD9hO9cUji3m5cUBBbpSdP2nIZKTpyd+YyKRTsQPhbW Blp5Gg4juGgp8NunjOLXRFyc78m/b1VK+jjXf3K7NcoYzORqavM2POO9QHMBF8OI8rsz 5zKA== X-Gm-Message-State: AIVw1104oN4531A9yzRHqsRv0VNzpcS4iiqdAlfUNuHtYoFwHgSEs6/z qV6JJo50UhdFpdL3fVjULg== X-Received: by 10.200.42.241 with SMTP id c46mr29836983qta.9.1500302937888; Mon, 17 Jul 2017 07:48:57 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: John David Anglin Subject: [PATCH] hppa: Fix clone exit syscall argument passing (BZ#21512) Date: Mon, 17 Jul 2017 11:48:52 -0300 Message-Id: <1500302932-28664-1-git-send-email-adhemerval.zanella@linaro.org> This patch fixes the argument passing for exit syscall after the clone function returns on hppa. This fixes on misc/tst-clone1. Checked misc/tst-clone2 on hppa-linux-gnu. [BZ #21512] * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Fix argument passing to syscall exit. --- ChangeLog | 4 ++++ sysdeps/unix/sysv/linux/hppa/clone.S | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/sysdeps/unix/sysv/linux/hppa/clone.S b/sysdeps/unix/sysv/linux/hppa/clone.S index ead3c92..0579d98 100644 --- a/sysdeps/unix/sysv/linux/hppa/clone.S +++ b/sysdeps/unix/sysv/linux/hppa/clone.S @@ -150,7 +150,7 @@ ENTRY(__clone) #ifdef PIC copy %r4, %r19 #endif - /* The call to _exit needs saved r19. */ + copy %r28, %r26 ble 0x100(%sr2, %r0) ldi __NR_exit, %r20