From 94e9411b9dda182dd63d53ba6ea640c98b35db5f Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 12 Nov 2009 10:26:16 -0600 Subject: ppc/85xx: Add tracking of TLB CAM usage We need to track which TLB CAM entries are used to allow us to "dynamically" allocate entries later in the code. For example the SPD DDR code today hard codes which TLB entries it uses. We can now make that pick entries that are free. Signed-off-by: Kumar Gala --- include/asm-ppc/mmu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/asm-ppc/mmu.h') diff --git a/include/asm-ppc/mmu.h b/include/asm-ppc/mmu.h index ec22a5058e..fd1024947d 100644 --- a/include/asm-ppc/mmu.h +++ b/include/asm-ppc/mmu.h @@ -479,6 +479,8 @@ extern void disable_tlb(u8 esel); extern void invalidate_tlb(u8 tlb); extern void init_tlbs(void); extern int find_tlb_idx(void *addr, u8 tlbsel); +extern void init_used_tlb_cams(void); +extern int find_free_tlbcam(void); extern unsigned int setup_ddr_tlbs(unsigned int memsize_in_meg); -- cgit v1.2.1