From patchwork Tue Jun 18 01:37:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 17956 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3C7B323971 for ; Tue, 18 Jun 2013 01:35:39 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id 1sf4905362qee.10 for ; Mon, 17 Jun 2013 18:35:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=2J2L9CFDjNnztDJKbNByZQoOLSPc2OBicM63LO0QGXc=; b=nmU66Qo8BuK37YHoMX0tuFrZVuHRH3mQCRQ6dwhfxEdmsJAv8MKVAxckgsqs7fyosI h3zXXS0XU7NQlgL2Qxb11Yfzl/FRVCzoa+261jrKPx4zaWsap71ADuoxLKgMPBHUCh2c +tKoiXCTSLLXdFo7nU9nVLqM23xxcDgVIkYU2Hy6Y7N24OANI92Iz4kp9ja0av7Kb7I5 qGuP0NiITietcqhsjqKSGvxq42lZ4+Tx70/akLkE1BtK/WMMk2y/SBIznSEEsLhAG4A5 qJX9NfUtmR66Fr7qGqFewy1ZpE8L+EddEe2Ffri796WNmGX5583idsCOQgtatsfiK3ep HK7g== X-Received: by 10.224.200.202 with SMTP id ex10mr10889875qab.8.1371519338888; Mon, 17 Jun 2013 18:35:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.103.132 with SMTP id fw4ls1189438qeb.17.gmail; Mon, 17 Jun 2013 18:35:38 -0700 (PDT) X-Received: by 10.58.215.200 with SMTP id ok8mr5387204vec.21.1371519338637; Mon, 17 Jun 2013 18:35:38 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id f8si3651691vec.9.2013.06.17.18.35.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Jun 2013 18:35:38 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id lf11so2489668vcb.40 for ; Mon, 17 Jun 2013 18:35:38 -0700 (PDT) X-Received: by 10.58.251.144 with SMTP id zk16mr5271086vec.37.1371519338318; Mon, 17 Jun 2013 18:35:38 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.165.8 with SMTP id yu8csp55042veb; Mon, 17 Jun 2013 18:35:37 -0700 (PDT) X-Received: by 10.68.189.194 with SMTP id gk2mr14965920pbc.193.1371519337194; Mon, 17 Jun 2013 18:35:37 -0700 (PDT) Received: from mail-pa0-x22b.google.com (mail-pa0-x22b.google.com [2607:f8b0:400e:c03::22b]) by mx.google.com with ESMTPS id ol10si7315775pbb.184.2013.06.17.18.35.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Jun 2013 18:35:37 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c03::22b is neither permitted nor denied by best guess record for domain of christoffer.dall@linaro.org) client-ip=2607:f8b0:400e:c03::22b; Received: by mail-pa0-f43.google.com with SMTP id hz11so3454226pad.30 for ; Mon, 17 Jun 2013 18:35:36 -0700 (PDT) X-Received: by 10.68.247.69 with SMTP id yc5mr15212973pbc.66.1371519336812; Mon, 17 Jun 2013 18:35:36 -0700 (PDT) Received: from localhost.localdomain (c-67-169-183-77.hsd1.ca.comcast.net. [67.169.183.77]) by mx.google.com with ESMTPSA id iq2sm15864190pbb.19.2013.06.17.18.35.35 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Jun 2013 18:35:36 -0700 (PDT) From: Christoffer Dall To: linux-arm-kernel@lists.infradead.org Cc: kvmarm@lists.cs.columbia.edu, patches@linaro.org, linaro-kernel@lists.linaro.org, Christoffer Dall Subject: [PATCH] arm64: Define PTE_TYPE_HUGEPAGE Date: Mon, 17 Jun 2013 18:37:35 -0700 Message-Id: <1371519455-64998-1-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 1.8.1.2 X-Gm-Message-State: ALoCoQkmwCTwz+kK7VWjkkelI1BaG7Q6sgvw9espuTLnIcQCnCM0UxH6zIqjErbTJmQ4dJJw5KUL X-Original-Sender: christoffer.dall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , PTE_TYPE_HUGEPAGE is referenced by pte_huge, but because nobody uses this macro it doesn't fail yet. KVM will be using this when 32-bit support for huge pages is added so add it. Signed-off-by: Christoffer Dall --- arch/arm64/include/asm/pgtable-hwdef.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/include/asm/pgtable-hwdef.h b/arch/arm64/include/asm/pgtable-hwdef.h index 66367c6..0219523 100644 --- a/arch/arm64/include/asm/pgtable-hwdef.h +++ b/arch/arm64/include/asm/pgtable-hwdef.h @@ -54,6 +54,7 @@ #define PTE_TYPE_MASK (_AT(pteval_t, 3) << 0) #define PTE_TYPE_FAULT (_AT(pteval_t, 0) << 0) #define PTE_TYPE_PAGE (_AT(pteval_t, 3) << 0) +#define PTE_TYPE_HUGEPAGE (_AT(pteval_t, 1) << 0) #define PTE_USER (_AT(pteval_t, 1) << 6) /* AP[1] */ #define PTE_RDONLY (_AT(pteval_t, 1) << 7) /* AP[2] */ #define PTE_SHARED (_AT(pteval_t, 3) << 8) /* SH[1:0], inner shareable */