From patchwork Fri Dec 19 02:34:53 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Yu-B13201 X-Patchwork-Id: 14778 X-Patchwork-Delegate: galak@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 7B368DDF58 for ; Fri, 19 Dec 2008 13:41:49 +1100 (EST) X-Original-To: linuxppc-dev@ozlabs.org Delivered-To: linuxppc-dev@ozlabs.org Received: from az33egw02.freescale.net (az33egw02.freescale.net [192.88.158.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw02.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id BC72CDDF0F for ; Fri, 19 Dec 2008 13:40:02 +1100 (EST) Received: from de01smr01.freescale.net (de01smr01.freescale.net [10.208.0.31]) by az33egw02.freescale.net (8.14.3/az33egw02) with ESMTP id mBJ2dmbo026602 for ; Thu, 18 Dec 2008 19:39:59 -0700 (MST) Received: from zch01exm26.fsl.freescale.net (zch01exm26.ap.freescale.net [10.192.129.221]) by de01smr01.freescale.net (8.13.1/8.13.0) with ESMTP id mBJ2dkxW024990 for ; Thu, 18 Dec 2008 20:39:47 -0600 (CST) Received: from localhost ([10.193.20.106]) by zch01exm26.fsl.freescale.net with Microsoft SMTPSVC(6.0.3790.3959); Fri, 19 Dec 2008 10:39:45 +0800 From: Liu Yu To: kvm-ppc@vger.kernel.org, linuxppc-dev@ozlabs.org Subject: [PATCH v2] powerpc/fsl-booke: declare tlbcam_index for use in c file Date: Fri, 19 Dec 2008 10:34:53 +0800 Message-Id: <1229654093-11398-1-git-send-email-yu.liu@freescale.com> X-Mailer: git-send-email 1.5.4 X-OriginalArrivalTime: 19 Dec 2008 02:39:45.0694 (UTC) FILETIME=[0DCD53E0:01C96183] Cc: scottwood@freescale.com, kumar.gala@freescale.com, Liu Yu , tpiepho@freescale.com, hollisb@us.ibm.com X-BeenThere: linuxppc-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org KVM on E500 platform currently utilize TLB1 entries without bothering host, that is using unused TLB1 entries. So, KVM needs to read tlbcam_index to know exactly which TLB1 entry is unused by host. Signed-off-by: Liu Yu Acked-by: Kumar Gala --- [v2] Remove num_tlbcam_entries declare and read from SPRN_TLB1CFG in KVM instead. arch/powerpc/include/asm/mmu-fsl-booke.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/asm/mmu-fsl-booke.h b/arch/powerpc/include/asm/mmu-fsl-booke.h index 925d93c..c86af6c 100644 --- a/arch/powerpc/include/asm/mmu-fsl-booke.h +++ b/arch/powerpc/include/asm/mmu-fsl-booke.h @@ -73,6 +73,8 @@ #ifndef __ASSEMBLY__ +extern unsigned int tlbcam_index; + typedef struct { unsigned long id; unsigned long vdso_base;