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: 3421 Received: (qmail 29945 invoked by alias); 27 Oct 2014 08:03:10 -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 29861 invoked by uid 89); 27 Oct 2014 08:03:09 -0000 Authentication-Results: sourceware.org; auth=none 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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FMzMxVBZFYWYf62JJ8Ao2F8tGR9GIt0t+1YVtrKWYkU=; b=VwrRgGatoxdOzdeNypqwtb1V92wVwNeBypVIjMRR3Aqklhnhl6me6b/Iq+Ob5H7loP c67a4Fo324zn1YyNhRNeVyfUfyvEaBz6xAR5ISwmmVCWXpI2l4Gh+0G01vjePlhtRToZ kkgeO9+Btm/MPx8o906cdhwDSZEZ5eiuw+4d8wOU4N6ToncL40KPdK6WXrbGDt6WP5eT TiArgBuD8QvIV5uGDfTHeRQB/NK5aPYX9ogDM+cR4g+CNCvvetvTPgOPRtp1oAc1OCCe Mp5VHOX7IkN9hp+GH1h5NVH8knZm4pJn1jGMMEhrgsuoA9p82so1XbfdCB95qR+WeBzv pgyw== X-Gm-Message-State: ALoCoQmYa+/OUclWbs6+ITU8rAGXhWGOi01FSIxu5SSWgfUOQRyZhAy9Hw1kPxRDI21/BrYo/sBu 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> __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