Skip to content

Commit

Permalink
UML - Fix build in 2.6.24-rc2-mm1
Browse files Browse the repository at this point in the history
The earlier pgtable.h tidying patch made things a bit too tidy.  Add
back a header which is needed in VMALLOC_START and friend.  Also add
back a definition of pmd_page_vaddr, which is needed on x86_64.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed Feb 5, 2008
1 parent d83ecf0 commit 300ecf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/asm-um/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#define __UM_PGTABLE_H

#include "linux/sched.h"
#include <asm/fixmap.h>

#define _PAGE_PRESENT 0x001
#define _PAGE_NEWPAGE 0x002
Expand Down Expand Up @@ -308,6 +309,7 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
* this macro returns the index of the entry in the pmd page which would
* control the given virtual address
*/
#define pmd_page_vaddr(pmd) ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK))
#define pmd_index(address) (((address) >> PMD_SHIFT) & (PTRS_PER_PMD-1))

/*
Expand Down

0 comments on commit 300ecf5

Please sign in to comment.