From patchwork Thu Dec 14 12:10:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 848513 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-88126-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="DJRKp3uo"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yyC831HgKz9s83 for ; Thu, 14 Dec 2017 23:10:58 +1100 (AEDT) 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:subject:date:message-id; q=dns; s= default; b=mRHLQGSq2pULoXtx7Qq8Z6sus+4kKInwmkmEPEpajXOYMo6Be4S6R EX7X2yWFVWOlVUWO+zD5fgJw+ovpnOoDcmLIXjpJm2952d4SEjVyy1e65kmt61Vx sto6ak5Jr/XLRsWn+BTjPhP824bWtuESe/8thXwv+WRtnVVIGieGng= 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:subject:date:message-id; s=default; bh=94y/oyqhfhx9MoZEZHUIBx+Cunk=; b=DJRKp3uowrxyaHQRVFSpzFZr2ovK nNzZwRmRLY86Tg5ojot+qff1LyUX3MTmhHKctAppgrcII0CoakARcdmigzsLzv7t 7jgJr/1v1DTL7j50A85pOjXCMDF38YA6sKsStLSGLMAsnS9RBbUW9szGIiDhkQb5 G/wHvucRMg1Rv4A= Received: (qmail 51186 invoked by alias); 14 Dec 2017 12:10:52 -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 51171 invoked by uid 89); 14 Dec 2017 12:10:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-qt0-f194.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:subject:date:message-id; bh=sIaee3k4QZD9XEplDj6+ZMiMCCQaoL7uaYs/9f8z7Pw=; b=UVDx9C6tgmAqJs6en1unpipUEFPv0UjQWITpV4XbPoXNrQ1yuA2FnsF2cAQ/cepGFs I4rgNYcCxBEgOnKDQiwlqNuCqzIx/tiyK0kdxEXvg8/G9r5awZfCkg9DorFwwRWAr/yl /N+SkoN+WDeuteHoKlgw8SFVDd5pVsQmv61RX10hpkBC3v1RD1y+VlxKGYagOi/jOsSP r3I5TMxYxdJSd27xAsDcS5bbFZVS8QJJ6gAkWVEo6IFyBie81zmhcRfVPQMMKBwy0e9k Vfn1RkN7McGObj1I6iXxIA+mwP0jenxYBetJevkEgkZNe4br1XHEescv/F9aSdLixSBa 9ejA== X-Gm-Message-State: AKGB3mJ4mzYLZ5iehEiF47ycUzbxLiHF3bnUkQQly3gwU3esoxJXkRy3 v0w3AANIHnuxSMJLzqY4U9qyhpBEzD8= X-Google-Smtp-Source: ACJfBotQ4+s4QZMZO2uZc6aBazNSENDy8ID5QLHum2iztpW4dyIJkJvoiGK6KnWJlkEJhssr7TN/wg== X-Received: by 10.200.56.137 with SMTP id f9mr15090701qtc.116.1513253444114; Thu, 14 Dec 2017 04:10:44 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH] sh: Fix clone exit return code Date: Thu, 14 Dec 2017 10:10:36 -0200 Message-Id: <1513253436-11438-1-git-send-email-adhemerval.zanella@linaro.org> Since 3f823e87cc (Call exit directly in clone (BZ #21512)) SH clone implementation fails to set the exit code resulting in the failures: FAIL: nptl/tst-align-clone FAIL: nptl/tst-getpid1 This patch fixes the both testcases. * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return code. Signed-off-by: Adhemerval Zanella --- ChangeLog | 6 ++++++ sysdeps/unix/sysv/linux/sh/clone.S | 1 + 2 files changed, 7 insertions(+) diff --git a/sysdeps/unix/sysv/linux/sh/clone.S b/sysdeps/unix/sysv/linux/sh/clone.S index b13a64b..d369a82 100644 --- a/sysdeps/unix/sysv/linux/sh/clone.S +++ b/sysdeps/unix/sysv/linux/sh/clone.S @@ -73,6 +73,7 @@ ENTRY(__clone) mov.l @(4,r15), r4 /* we are done, passing the return value through r0 */ + mov r0, r4 mov #+SYS_ify(exit), r3 trapa #0x15 .align 2