From patchwork Mon Oct 27 07:59:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 39586 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B5C152118A for ; Mon, 27 Oct 2014 08:04:24 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b57sf198839eek.9 for ; Mon, 27 Oct 2014 01:04:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:mailing-list :precedence:list-id:list-unsubscribe:list-subscribe:list-archive :list-post:list-help:sender:delivered-to:from:to:cc:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results; bh=FMzMxVBZFYWYf62JJ8Ao2F8tGR9GIt0t+1YVtrKWYkU=; b=dT3aZBLOYNQMy9cu1mDdMCe6CGHuaA/n1yjGo+U+0SIiLYPQEJsk3Y/6eEzj9y0hrg 7TXoJWDPNz8otJ5sSKcu3Gst/IRhZu2RuV8nb+UkpAVzO4TgVIKV9g+dLrKupjXUjnbP 50+tHS94Io20f52+G+vo5h/LA6N1KlSLQ14FyYueXKovXLu0nVbCa2u6VwUo4ukeXhJq KdzqW1Kf1m2NNrF3igaVvWAtU+T76myg03Ij/A3ETIxTSeV+zwyUwH0tzLyVkexeoK3M rro3yncCLwR1ToTKxCg/aHCRhCpaNYNr1Rbrfgrzd8HJGnrOcZ2USmyoaCdwvMygCzZz rkGA== X-Gm-Message-State: ALoCoQn+jenDMbQr8MkGeoTzBGGy5rd/Lc3NrqsVKJc4xiQ3YKbY1oO5uVkzfCI8tqoXdlvaCE74 X-Received: by 10.112.97.35 with SMTP id dx3mr68744lbb.20.1414397063547; Mon, 27 Oct 2014 01:04:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.202.230 with SMTP id kl6ls426823lac.99.gmail; Mon, 27 Oct 2014 01:04:23 -0700 (PDT) X-Received: by 10.112.224.162 with SMTP id rd2mr1343698lbc.95.1414397063401; Mon, 27 Oct 2014 01:04:23 -0700 (PDT) Received: from mail-la0-x236.google.com (mail-la0-x236.google.com. [2a00:1450:4010:c03::236]) by mx.google.com with ESMTPS id g7si18675886lab.66.2014.10.27.01.04.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Oct 2014 01:04:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::236 as permitted sender) client-ip=2a00:1450:4010:c03::236; Received: by mail-la0-f54.google.com with SMTP id gm9so5246921lab.41 for ; Mon, 27 Oct 2014 01:04:23 -0700 (PDT) X-Received: by 10.112.140.5 with SMTP id rc5mr2465859lbb.32.1414397063228; Mon, 27 Oct 2014 01:04:23 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp247682lbz; Mon, 27 Oct 2014 01:04:22 -0700 (PDT) X-Received: by 10.68.226.226 with SMTP id rv2mr22552345pbc.77.1414397061499; Mon, 27 Oct 2014 01:04:21 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id ml2si9883620pab.144.2014.10.27.01.04.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Oct 2014 01:04:21 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-53818-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 29945 invoked by alias); 27 Oct 2014 08:03:10 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 29861 invoked by uid 89); 27 Oct 2014 08:03:09 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: mail-ie0-f175.google.com X-Received: by 10.50.6.2 with SMTP id w2mr20046415igw.29.1414396986105; Mon, 27 Oct 2014 01:03:06 -0700 (PDT) From: Andrew Pinski To: libc-alpha@sourceware.org Cc: Andrew Pinski Subject: [PATCH 20/29] [AARCH64] Set up wordsize for ILP32. Date: Mon, 27 Oct 2014 00:59:44 -0700 Message-Id: <1414396793-9005-21-git-send-email-apinski@cavium.com> In-Reply-To: <1414396793-9005-1-git-send-email-apinski@cavium.com> References: <1414396793-9005-1-git-send-email-apinski@cavium.com> X-Original-Sender: apinski@cavium.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::236 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@sourceware.org X-Google-Group-Id: 836684582541 __WORDSIZE needs to be set to 32 for ILP32. * sysdeps/aarch64/bits/wordsize.h (__WORDSIZE): Set to 32 for ILP32. Update comments. --- sysdeps/aarch64/bits/wordsize.h | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/sysdeps/aarch64/bits/wordsize.h b/sysdeps/aarch64/bits/wordsize.h index 3ecccaa..3d5a79d 100644 --- a/sysdeps/aarch64/bits/wordsize.h +++ b/sysdeps/aarch64/bits/wordsize.h @@ -15,12 +15,16 @@ License along with the GNU C Library; if not, see . */ -#define __WORDSIZE 64 +#ifdef __LP64__ +# define __WORDSIZE 64 +#else +# define __WORDSIZE 32 +#endif -/* LP64 ABI has a 64bit time_t. +/* LP64 and ILP32s ABI uses a 64bit time_t. This allows aarch32 and AARCH64 applications both access utmp. */ #define __WORDSIZE_TIME64_COMPAT32 1 -/* LP64 use the 64bit system call interface. */ +/* LP64 and ILP32 use the 64bit system call interface. */ #define __SYSCALL_WORDSIZE 64