From patchwork Tue Feb 23 15:17:04 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: 62726 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1885933lbl; Tue, 23 Feb 2016 07:17:49 -0800 (PST) X-Received: by 10.67.7.1 with SMTP id cy1mr47401758pad.123.1456240669431; Tue, 23 Feb 2016 07:17:49 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id aa6si47864800pad.148.2016.02.23.07.17.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Feb 2016 07:17:49 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-return-67549-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-67549-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-67549-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=GwGdICS8T6m6OX9x/yYVRM0CycWK1hr GkvMY/dm3XUZOT1rPN6eSQHTGmYO9/cPe8qCHE66NzctQhzgMDRYqMSZA2vfUXos pqw9sTFb7gdUrTol+3oYHJz882Z3Peq2uMjsJapb7d0QDjX5k4Z9v/vVvm4hsq3b Sa+DQWCm7tL4= 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=PpX7j HP5bzENxLzRqvsOHhNn1+2DnTOxmeT+EFTlR+CYaYv/f7QbcZKz/g6m2hcQIEK8V 87JWu/tURpMFaQgyp//bFZlOUkaZYvjuEfcQETPwIv3Bpga9vCSRHGYYgI0UoZbD EuedOsSZoKNNo2EVL5FUe7cCi3UsznWunqkLPg= Received: (qmail 44183 invoked by alias); 23 Feb 2016 15:17:23 -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 44129 invoked by uid 89); 23 Feb 2016 15:17:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=423, 42, 3, 42, 7, 427 X-HELO: mail-yw0-f181.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=PMnmIRgc/iiuEcpO6NIA+REAEdUfn60RQ0AA57H3WzqYF0IqUObJyi/myq9xMNq7/R XXCJbgw2LtPBP5Kkz8NZ/HBise/nOI+qc/fTIccpC63NvLr84QZkM2mXaGNjHll1nhMk h1gk+jH4io0ihmBdnZ8yTqPPFvRRS1CpQxmNhMTQKGxVUkDgjDAknOTCpz+IN77pDXKl WfsC+a9pA1Q7FQ5bmO+/gyCwto6m1zhxLHo/niGzm5OA3cKFwmzXdKDp1orD7RdztZjR gJxs2kVB2emF8UU/Je7qj7F9RuS31nvWvD0t3iInMIOy8jVN+meRbNzcGibCsJHVvPQs EGnQ== X-Gm-Message-State: AG10YOTaduQ3VnhegDowE3EiN7HqnziOEcUAQDhtxbpEMyGkDv5YeeUnm8lSU5yxKUuGJVu3 X-Received: by 10.129.97.195 with SMTP id v186mr16695057ywb.269.1456240635293; Tue, 23 Feb 2016 07:17:15 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 1/4] Define __ASSUME_ALIGNED_REGISTER_PAIRS for missing ports Date: Tue, 23 Feb 2016 12:17:04 -0300 Message-Id: <1456240627-18774-2-git-send-email-adhemerval.zanella@linaro.org> In-Reply-To: <1456240627-18774-1-git-send-email-adhemerval.zanella@linaro.org> References: <1456240627-18774-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