From patchwork Wed Feb 24 20:48:05 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: 587737 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 094F21401AF for ; Thu, 25 Feb 2016 07:48:40 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=I6OqkU4b; dkim-atps=neutral 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=AtUV1Qq02GI1K4cRsZL4DEChxnyBakP /fOvsB4rhfqtQ+1jVOIt3nT7uJ5jvvcozk29iMbnTTMW0ZSGvyzA5OeXpsM9UDLn pVr2JcWuMbEmY2vkT8Q9IAxrS/ythxhgvJRGx6EipCyBaeQAPsqC+Bw3ETDr2zXE xBzCS4OVqSPY= 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=I6Oqk U4bcPLNxWNwVK6s90h6fe+JrHFN23/EzmBtJMRlvdxSyCe+F/7lnX28QFeB+MZ39 bYG0OdQsryDiRBDDiCOyydOjYnv0e5qOFsrJmkEqtz9wgxrOhDKrQt/BPjk1YRLJ YEb32e1ziEhu6fU5YtBHAla0hSjsM+qeTl7bbY= Received: (qmail 4835 invoked by alias); 24 Feb 2016 20:48:24 -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 4795 invoked by uid 89); 24 Feb 2016 20:48: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= X-HELO: mail-yw0-f173.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=Wjw3MZA0cCaAqoNYkkXcBbs9uzetq2XThhYS/+xnRJsWPn9N68qoTocWw7lEiksNjS o/m2oulOJVxNAfQS3zZn0oEGwcVn9DO8BlOn5F6tQFdEDqHHIM/wCFbyNtAUnpEpMkWA Zrk2rf+b/Hjx2+Vyh4Zl0AAQLOYU2cmY5tQtm9RiOUo+TBE3IfJMD6TjptSdat8tnVTq VfjNvvo5CFb9RCg6whfNbv5Wb2ohZMtHtno8xghT1tKiyqut7rI6YMBmmLTZGs/bElKb vUaaDWBx5N0eh2kUw0mkLAMCR9nzv4dfjDKnBye9aXUR1VmelBogs9tzPsEvK3iS1F7J U0tA== X-Gm-Message-State: AG10YORatTLkC5oYZkTLgx7jbbGWNSCXfG/KumM/+ybcfWarvNjCtNQ4O1V+OcrGzUa+JrTX X-Received: by 10.129.108.146 with SMTP id h140mr20660599ywc.175.1456346900562; Wed, 24 Feb 2016 12:48:20 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 1/5] Define __ASSUME_ALIGNED_REGISTER_PAIRS for missing ports Date: Wed, 24 Feb 2016 17:48:05 -0300 Message-Id: <1456346889-9862-2-git-send-email-adhemerval.zanella@linaro.org> In-Reply-To: <1456346889-9862-1-git-send-email-adhemerval.zanella@linaro.org> References: <1456346889-9862-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(+) 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