From patchwork Thu Jan 7 17:18:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 59299 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp46161lbb; Thu, 7 Jan 2016 09:19:01 -0800 (PST) X-Received: by 10.66.161.133 with SMTP id xs5mr150898978pab.70.1452187141603; Thu, 07 Jan 2016 09:19:01 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id rw5si9637724pab.59.2016.01.07.09.19.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Jan 2016 09:19:01 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-return-66056-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; spf=pass (google.com: domain of libc-alpha-return-66056-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-66056-patch=linaro.org@sourceware.org; dkim=pass header.i=@sourceware.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:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=fUn8Kcv9YBnVDBGXsjVmkb9AFa+h1ae PWZNsKnDDAVW4fmb11WiNELevQij4IpV+fGbT9GBkj0u6AcVWuIiw3j0IifUzWVE y1kRYc8IRbkNtnRvLUBF4z9abLlO0crlMIFqfwjlsLyyr0yVcJ8PRi4oXhNASigw 8LtLTnXsYSRY= 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:in-reply-to :references; s=default; bh=o+4pPJVxYgxuDBF6HG864vZS2V4=; b=KDM+v PLo9Ek+HvA3qVcy1ZfIiMElP0dHTjUQsgVr9Y047inh3ilyrpHhiwz3FrAckSVPJ s7TXlo27/4XTSbTT538SrmFCpIgeAqn36J+Q/xq413jh1ZExed8lH5aTaL8sR45X YVeocRPSJRfQB9XEOT4/odIEUY2KU5zdzOBlYk= Received: (qmail 35137 invoked by alias); 7 Jan 2016 17:18:40 -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 35116 invoked by uid 89); 7 Jan 2016 17:18:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=427, 574, 423, 1.9.1 X-HELO: mail-yk0-f180.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=h4rb12YGOu+boV5Fl4qbEMja4RrEb8gBUSvYuVV+OoI=; b=DqnvvDl0xKilISkxUnua4e1c2RpTe705wsUvtwTppD++IlwYz0ic7gUyNmaWHew2II MuJfNYyHuv6VtbDuMHkJ30b8e72AZAtZytnoSNLoQupuaNGE5mZv1N8weio0KfAorcky ARfHLKUtMuYKRmd+QN9mWCFNsBhyKd+x2EIEqB13X6qeZxd+O1SDbPvwaeVmtl/9gho5 JwTHENmyIojjH2Y6n+zNPbBYwmpzSpjrlhZ8kXqzFB6IqmTUqnyDEEGwNvoxJDPdDMMV ugeJqIVVmiA/9IUYinzuJVppJmr1lYqTSc0mT+EpDtKBz+ZRzb989XbNFq7pXxw+3j7i S4oA== X-Gm-Message-State: ALoCoQmLjx/Y8HCKMU8EDmvFhwCirGrv068VLdqIAHXtKhy8aLlFzGBeHS/o8Izg+FVj1CqRX3b/mD552Jfv5syWEG3cdZYQNw== X-Received: by 10.13.230.148 with SMTP id p142mr73625719ywe.43.1452187116944; Thu, 07 Jan 2016 09:18:36 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 1/4] Define __ASSUME_ALIGNED_REGISTER_PAIRS for missing ports Date: Thu, 7 Jan 2016 15:18:25 -0200 Message-Id: <1452187108-6504-2-git-send-email-adhemerval.zanella@linaro.org> In-Reply-To: <1452187108-6504-1-git-send-email-adhemerval.zanella@linaro.org> References: <1452187108-6504-1-git-send-email-adhemerval.zanella@linaro.org> This patch defines __ASSUME_ALIGNED_REGISTER_PAIRS for the missing ports that require 64-bit value (e.g., long long) to be aligned to an even register pair in argument passing. No code change is expected, tested with builds for powerpc32, mips-o32, and armhf. * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_ALIGNED_REGISTER_PAIRS): Define. * sysdeps/unix/sysv/linux/mips/kernel-features.h [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise. * sysdeps/unix/sysv/linux/powerpc/kernel-features.h [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise. --- ChangeLog | 9 +++++++++ sysdeps/unix/sysv/linux/arm/kernel-features.h | 4 ++++ sysdeps/unix/sysv/linux/mips/kernel-features.h | 6 ++++++ sysdeps/unix/sysv/linux/powerpc/kernel-features.h | 6 ++++++ 4 files changed, 25 insertions(+) -- 1.9.1 diff --git a/sysdeps/unix/sysv/linux/arm/kernel-features.h b/sysdeps/unix/sysv/linux/arm/kernel-features.h index 6f1606c..1bcc34d 100644 --- a/sysdeps/unix/sysv/linux/arm/kernel-features.h +++ b/sysdeps/unix/sysv/linux/arm/kernel-features.h @@ -42,3 +42,7 @@ # undef __ASSUME_REQUEUE_PI # undef __ASSUME_SET_ROBUST_LIST #endif + +/* Define this if your 32-bit syscall API requires 64-bit register + pairs to start with an even-number register. */ +#define __ASSUME_ALIGNED_REGISTER_PAIRS 1 diff --git a/sysdeps/unix/sysv/linux/mips/kernel-features.h b/sysdeps/unix/sysv/linux/mips/kernel-features.h index 83f7a47..586871d 100644 --- a/sysdeps/unix/sysv/linux/mips/kernel-features.h +++ b/sysdeps/unix/sysv/linux/mips/kernel-features.h @@ -47,3 +47,9 @@ # undef __ASSUME_REQUEUE_PI # undef __ASSUME_SET_ROBUST_LIST #endif + +/* Define this if your 32-bit syscall API requires 64-bit register + pairs to start with an even-number register. */ +#if _MIPS_SIM == _ABIO32 +#define __ASSUME_ALIGNED_REGISTER_PAIRS 1 +#endif diff --git a/sysdeps/unix/sysv/linux/powerpc/kernel-features.h b/sysdeps/unix/sysv/linux/powerpc/kernel-features.h index 14807ad..6dcd77d 100644 --- a/sysdeps/unix/sysv/linux/powerpc/kernel-features.h +++ b/sysdeps/unix/sysv/linux/powerpc/kernel-features.h @@ -57,4 +57,10 @@ #endif #define __ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL 1 +/* Define this if your 32-bit syscall API requires 64-bit register + pairs to start with an even-number register. */ +#ifndef __powerpc64__ +# define __ASSUME_ALIGNED_REGISTER_PAIRS 1 +#endif + #include_next