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: 2738061 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D3A329F472 for ; Tue, 18 Jun 2013 01:36:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EDEFA2015C for ; Tue, 18 Jun 2013 01:36:18 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CC9C620153 for ; Tue, 18 Jun 2013 01:36:17 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uokq7-0002PJ-Bf; Tue, 18 Jun 2013 01:36:07 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uokq4-0001Kh-N4; Tue, 18 Jun 2013 01:36:04 +0000 Received: from mail-pd0-f172.google.com ([209.85.192.172]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uokq0-0001KA-PB for linux-arm-kernel@lists.infradead.org; Tue, 18 Jun 2013 01:36:01 +0000 Received: by mail-pd0-f172.google.com with SMTP id z10so3373939pdj.3 for ; Mon, 17 Jun 2013 18:35:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=2J2L9CFDjNnztDJKbNByZQoOLSPc2OBicM63LO0QGXc=; b=QJVU/uNUqKFP3nCsp3Gm5OxbXPTbLblwR6QtqtNSJ0X2RxKlMM0SuHhM5Iz14kH1lf 8REsMGZC5pZqp7ZJdr4KBiP32qcO0BAMHps9gv4g9qmRThVFXA+z6qXfPa2IlSz9i7hQ pE5nCmNphJxWb4RkZ5wa6HfFfX3cxkb/Ok/nXpxAq4G/xzcz499RXQTHHGxh/6JHut2f mLUfQAoSoFrAq7efw2LG3hcj6lYJSCtHWDE5CRJ0vpA7m60JgCgmTnAWluuLRSFSUxfR SZk+xVAvVRNSW7niDeX1jcfcSJDoguNhL5USOghlJpnlPULs7pLg84SWWpUCI1/sRugl hc+A== 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 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: ALoCoQnFKvqJGVsZOsL7OGo4j2412JNOlIHW+lNiabM3/+0NQmGtUteN0N6oYBcGWQ9meAa39JN+ X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130617_213600_910914_49EAF4BE X-CRM114-Status: UNSURE ( 8.32 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.6 (/) Cc: linaro-kernel@lists.linaro.org, kvmarm@lists.cs.columbia.edu, Christoffer Dall , patches@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD,SUSPICIOUS_RECIPS,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 */