Skip to content

Commit

Permalink
[PATCH] ARM: Add top_pmd, which points at the top-most page table
Browse files Browse the repository at this point in the history
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
  • Loading branch information
Russell King committed May 10, 2005
1 parent 155bb14 commit c4e1f6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm/mm/mm-armv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -682,6 +684,8 @@ void __init memtable_init(struct meminfo *mi)

flush_cache_all();
flush_tlb_all();

top_pmd = pmd_off_k(VECTORS_HIGH);
}

/*
Expand Down
3 changes: 3 additions & 0 deletions include/asm-arm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit c4e1f6f

Please sign in to comment.