[PATCH] ARM: Add top_pmd, which points at the top-most page table

Signed-off-by: Russell King <rmk@arm.linux.org.uk>

+7
+4
arch/arm/mm/mm-armv.c
··· 37 38 EXPORT_SYMBOL(pgprot_kernel); 39 40 struct cachepolicy { 41 const char policy[16]; 42 unsigned int cr_mask; ··· 684 685 flush_cache_all(); 686 flush_tlb_all(); 687 } 688 689 /*
··· 37 38 EXPORT_SYMBOL(pgprot_kernel); 39 40 + pmd_t *top_pmd; 41 + 42 struct cachepolicy { 43 const char policy[16]; 44 unsigned int cr_mask; ··· 682 683 flush_cache_all(); 684 flush_tlb_all(); 685 + 686 + top_pmd = pmd_off_k(VECTORS_HIGH); 687 } 688 689 /*
+3
include/asm-arm/page.h
··· 171 172 #endif /* STRICT_MM_TYPECHECKS */ 173 174 /* Pure 2^n version of get_order */ 175 static inline int get_order(unsigned long size) 176 {
··· 171 172 #endif /* STRICT_MM_TYPECHECKS */ 173 174 + /* the upper-most page table pointer */ 175 + extern pmd_t *top_pmd; 176 + 177 /* Pure 2^n version of get_order */ 178 static inline int get_order(unsigned long size) 179 {