linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] powerpc/fsl-booke: declare tlbcam_index for use in c file
@ 2008-12-19  2:34 Liu Yu
  2009-01-04  6:57 ` Liu Yu
  2009-01-07 15:09 ` [PATCH v2] powerpc/fsl-booke: declare tlbcam_index for use in c file Kumar Gala
  0 siblings, 2 replies; 6+ messages in thread
From: Liu Yu @ 2008-12-19  2:34 UTC (permalink / raw)
  To: kvm-ppc, linuxppc-dev; +Cc: scottwood, kumar.gala, Liu Yu, tpiepho, hollisb

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 <yu.liu@freescale.com>
---
[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;
-- 
1.5.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-01-07 15:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-19  2:34 [PATCH v2] powerpc/fsl-booke: declare tlbcam_index for use in c file Liu Yu
2009-01-04  6:57 ` Liu Yu
2009-01-05 16:26   ` Kumar Gala
2009-01-05 16:52     ` Hollis Blanchard
2009-01-06  4:55       ` [PATCH v2] powerpc/fsl-booke: declare tlbcam_index for use inc file Liu Yu
2009-01-07 15:09 ` [PATCH v2] powerpc/fsl-booke: declare tlbcam_index for use in c file Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).