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: 564377 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 39DCE1402DE for ; Fri, 8 Jan 2016 04:18:59 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=WWUbYzDG; 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=KPHyv26mVQAR6qmzUa0ZZFI03NsyvcA ecej4qZ1ngw4SjOo4CWE4XrzbWzzPItIzsgJCj86v8lV7ixNxs77sTZXo2EwSNKL vNQCGN+OQNtIyY57/eWLsFMpNGPTngGqUO+6bqnAC7Br4T9WaLSZYpvySe8ahes3 uYrur0bMiA58= 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=WWUbY zDGqYebLL2hGCS63FFtkvzB3m3Iek87H/zKy5O7JyeZYIntW34coge3p6Q2WZq2d mqwtsVVLUUGYgvKJ8M36GdjOs6dQ6XQpHJPl38Dnuz5tyA1592LeweHnux04G7TL CZYcbHDcvLtvdhF7gWwNI+C4CKQPRNZSFl+ecM= 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(+) 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