Commit c4e1f6f6 authored by Russell King's avatar Russell King

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

Signed-off-by: default avatarRussell King <rmk@arm.linux.org.uk>
parent 155bb144
...@@ -37,6 +37,8 @@ pgprot_t pgprot_kernel; ...@@ -37,6 +37,8 @@ pgprot_t pgprot_kernel;
EXPORT_SYMBOL(pgprot_kernel); EXPORT_SYMBOL(pgprot_kernel);
pmd_t *top_pmd;
struct cachepolicy { struct cachepolicy {
const char policy[16]; const char policy[16];
unsigned int cr_mask; unsigned int cr_mask;
...@@ -682,6 +684,8 @@ void __init memtable_init(struct meminfo *mi) ...@@ -682,6 +684,8 @@ void __init memtable_init(struct meminfo *mi)
flush_cache_all(); flush_cache_all();
flush_tlb_all(); flush_tlb_all();
top_pmd = pmd_off_k(VECTORS_HIGH);
} }
/* /*
......
...@@ -171,6 +171,9 @@ typedef unsigned long pgprot_t; ...@@ -171,6 +171,9 @@ typedef unsigned long pgprot_t;
#endif /* STRICT_MM_TYPECHECKS */ #endif /* STRICT_MM_TYPECHECKS */
/* the upper-most page table pointer */
extern pmd_t *top_pmd;
/* Pure 2^n version of get_order */ /* Pure 2^n version of get_order */
static inline int get_order(unsigned long size) static inline int get_order(unsigned long size)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment