From: Russell King Date: Tue, 10 May 2005 09:40:19 +0000 (+0100) Subject: [PATCH] ARM: Add top_pmd, which points at the top-most page table X-Git-Tag: v2.6.12-rc5~177^2~9 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=c4e1f6f6bf82af89994a0ee760fc5e036c4d3c1f;p=~emulex%2Finfiniband.git [PATCH] ARM: Add top_pmd, which points at the top-most page table Signed-off-by: Russell King --- diff --git a/arch/arm/mm/mm-armv.c b/arch/arm/mm/mm-armv.c index 2a514b05cd5..fa60fd65fcf 100644 --- a/arch/arm/mm/mm-armv.c +++ b/arch/arm/mm/mm-armv.c @@ -37,6 +37,8 @@ pgprot_t pgprot_kernel; EXPORT_SYMBOL(pgprot_kernel); +pmd_t *top_pmd; + struct cachepolicy { const char policy[16]; unsigned int cr_mask; @@ -682,6 +684,8 @@ void __init memtable_init(struct meminfo *mi) flush_cache_all(); flush_tlb_all(); + + top_pmd = pmd_off_k(VECTORS_HIGH); } /* diff --git a/include/asm-arm/page.h b/include/asm-arm/page.h index 4ca3a8e9348..d26d1574d97 100644 --- a/include/asm-arm/page.h +++ b/include/asm-arm/page.h @@ -171,6 +171,9 @@ typedef unsigned long pgprot_t; #endif /* STRICT_MM_TYPECHECKS */ +/* the upper-most page table pointer */ +extern pmd_t *top_pmd; + /* Pure 2^n version of get_order */ static inline int get_order(unsigned long size) {