From patchwork Wed Nov 18 14:02:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 546014 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 C114E14141A for ; Thu, 19 Nov 2015 01:02:57 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=fshhCFU3; 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=rHxHbLcaeM9pdaqR3Uw+FyRixOthR0L oK+cXIdJ9NNaHM12H6aq2CuutnihGDegnRH/JNEUPAtbahWLCgVAPzJU3xCxlLdy tHVDGWbFjZFov3ACouiXQc6yHOCpAd8PiMhPivO3zEjwYHTJIj6CINKwQW1+1+lY z0fjVHzpl0Eg= 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=CAZ27n9CVovt3OxZu9B3auza8X4=; b=fshhC FU3fqFGHENSrjpnkTAfPZEGXvAjMFvAhbyaUvZ5ZXWelafgDNynjDhLscXzx/wzN ubDZJR8waPbF0QtSof2rXvgmP39ItVmjLNbMiq3tpyfMPh1yLUUu+zXWA+YVfVGS s8HNtOTHGaC9hJs+KG54zTGFKGNw7MS4snI1ew= Received: (qmail 26818 invoked by alias); 18 Nov 2015 14:02:51 -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 26783 invoked by uid 89); 18 Nov 2015 14:02:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-yk0-f172.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=Z6wFRtdw20OnWMdjEN4NO4N80A31SBbKgjcoTR7VQ8E=; b=Srli4JQDXwAslBeH9JbCjTjaC1o/Dd9SpmjlH0CLOgGCU0wQxGP3632lvYVBIW/lba FcDfzzq1UZoqfPIwr+Rl4pt6ZadQRI4HnZpi7LyT/x0ZpEepoErqONKWh7WdM++DsNM7 5eLBh8jYL9u4eyf2k9p9j0hic/JYP9gaQLD9IRRB0jGsXGO8Fb2DAZUC2wW4WRZ3FshY hSg8kNrNv6fy0+XsbrhsI5iC5mlqgcq7jrmsY/XU48Ct4OCAqNg6l9hDVH7lPoTpcvMz Rnfhql2VWGzi+7ucgh/OZ7qSm19RcZsjDWYTZgJXM5C1n/8Vd1AtlMvNJDhyOxUHTz7W FRwg== X-Gm-Message-State: ALoCoQmwnUoSKBFaxIDlfZ18XLMj1T1oFezTi3FlwZhR/v3UwqTbf89jswwad9Nag4u/W+7lD6U3 X-Received: by 10.129.52.143 with SMTP id b137mr1780124ywa.201.1447855366445; Wed, 18 Nov 2015 06:02:46 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 1/4] Define __ASSUME_ALIGNED_REGISTER_PAIRS for missing ports Date: Wed, 18 Nov 2015 12:02:33 -0200 Message-Id: <1447855356-4140-2-git-send-email-adhemerval.zanella@linaro.org> In-Reply-To: <1447855356-4140-1-git-send-email-adhemerval.zanella@linaro.org> References: <1447855356-4140-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 cb407db..8aadbd9 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 50d9328..9080338 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 8a536cf..83d36e8 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