From patchwork Thu Feb 25 20:19:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 62914 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp354718lbc; Thu, 25 Feb 2016 12:19:46 -0800 (PST) X-Received: by 10.98.64.26 with SMTP id n26mr65710798pfa.149.1456431586212; Thu, 25 Feb 2016 12:19:46 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id s77si14478888pfs.76.2016.02.25.12.19.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Feb 2016 12:19:46 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-return-67645-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-67645-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-67645-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=XpgeKJ5b4deCHAnUh3raAkFjBx83JmA O9dMkfnAFxyrF0Zl2DJW6oO+YzmE8DZEqnvQ43opj3dMv18nhCSxgukO26oIzY7J DMfHV2RFY/LbJOu1rr1BtFCj4ndQnkWchavyGmgUzaHTs3ng1ta5Vv25tbYjnHuV jNo4ZR/p4fa4= 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=b7P37oIXF+eYvU7LbOJQwWB3k38=; b=t6WES z5LlXfMP7aFHs9vY+SSNWUtBXKPZ3nBe4S8ikyZlayKdiZEpIvGJVcGi0gwAb4N9 VTb2P1y07JQaUcLYc5+vIVPkyanlcdODKM3aGi8eqv7evNOJq6tE05pMrZDH+CrZ 2RLqsnrR96lo/w3wUkpRtZC8hpZtTHBwawO9VQ= Received: (qmail 131025 invoked by alias); 25 Feb 2016 20:19:27 -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 130979 invoked by uid 89); 25 Feb 2016 20:19:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=BAYES_00, RCVD_IN_BL_SPAMCOP_NET, SPF_PASS autolearn=no version=3.3.2 spammy=H*f:sk:1456431, H*i:sk:1456431, H*MI:sk:1456431 X-HELO: mail-yw0-f169.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=epMk1XHdzcngTqey81OeSympoiejicPu+dlDtVrWWiY=; b=Xh7MMGXnZzNIY79DK8SDcjqDWhbyR8iDbAuLIhFQaKTLGMmcu3vyF8Fycijz68xg+T 5Paa/TnAgHvS6QhsEZjdeid6XVqGGE8hLIpNjKTPyxotzlJdScCnKsWqoqEGXzmeoWWG iyfF0bWXq+EmpoN6Q0DbEHVySxm/sXFsdaJghB7Fs9QfL8RoFxmupGEbwG8bgc8ZtUWI HaoeiJcHq8VpbVdAWprRu7iA4BCJts6w63WKSIzMv4urbj3ewFoB0UM5Cbaz5s93fnuX c0dOcJmCxwoHkegQ24bYP8DldRLdvxBNAHqR/pAkft0wWgQYeu9sEeqdY/tQRhJ0GP4z Hs5A== X-Gm-Message-State: AG10YOThlV1r75ZNh1iPWMfI2NSuYzKYR61+Q5Fk1OuVKXmuz+aVJ/XlJ3JUGTvnOkOOGYg5 X-Received: by 10.13.233.66 with SMTP id s63mr24114992ywe.36.1456431564183; Thu, 25 Feb 2016 12:19:24 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 1/4] Define __ASSUME_ALIGNED_REGISTER_PAIRS for missing ports Date: Thu, 25 Feb 2016 17:19:12 -0300 Message-Id: <1456431555-14182-2-git-send-email-adhemerval.zanella@linaro.org> In-Reply-To: <1456431555-14182-1-git-send-email-adhemerval.zanella@linaro.org> References: <1456431555-14182-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. --- 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..ea6a914 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