diff options
-rw-r--r-- | arch/arm/mm/mm-armv.c | 4 | ||||
-rw-r--r-- | include/asm-arm/page.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mm/mm-armv.c b/arch/arm/mm/mm-armv.c index 2a514b05cd5c..fa60fd65fcf8 100644 --- a/arch/arm/mm/mm-armv.c +++ b/arch/arm/mm/mm-armv.c | |||
@@ -37,6 +37,8 @@ pgprot_t pgprot_kernel; | |||
37 | 37 | ||
38 | EXPORT_SYMBOL(pgprot_kernel); | 38 | EXPORT_SYMBOL(pgprot_kernel); |
39 | 39 | ||
40 | pmd_t *top_pmd; | ||
41 | |||
40 | struct cachepolicy { | 42 | struct cachepolicy { |
41 | const char policy[16]; | 43 | const char policy[16]; |
42 | unsigned int cr_mask; | 44 | unsigned int cr_mask; |
@@ -682,6 +684,8 @@ void __init memtable_init(struct meminfo *mi) | |||
682 | 684 | ||
683 | flush_cache_all(); | 685 | flush_cache_all(); |
684 | flush_tlb_all(); | 686 | flush_tlb_all(); |
687 | |||
688 | top_pmd = pmd_off_k(VECTORS_HIGH); | ||
685 | } | 689 | } |
686 | 690 | ||
687 | /* | 691 | /* |
diff --git a/include/asm-arm/page.h b/include/asm-arm/page.h index 4ca3a8e9348f..d26d1574d972 100644 --- a/include/asm-arm/page.h +++ b/include/asm-arm/page.h | |||
@@ -171,6 +171,9 @@ typedef unsigned long pgprot_t; | |||
171 | 171 | ||
172 | #endif /* STRICT_MM_TYPECHECKS */ | 172 | #endif /* STRICT_MM_TYPECHECKS */ |
173 | 173 | ||
174 | /* the upper-most page table pointer */ | ||
175 | extern pmd_t *top_pmd; | ||
176 | |||
174 | /* Pure 2^n version of get_order */ | 177 | /* Pure 2^n version of get_order */ |
175 | static inline int get_order(unsigned long size) | 178 | static inline int get_order(unsigned long size) |
176 | { | 179 | { |