|
@@ -9,6 +9,7 @@
|
|
#define __UM_PGTABLE_H
|
|
#define __UM_PGTABLE_H
|
|
|
|
|
|
#include "linux/sched.h"
|
|
#include "linux/sched.h"
|
|
|
|
+#include <asm/fixmap.h>
|
|
|
|
|
|
#define _PAGE_PRESENT 0x001
|
|
#define _PAGE_PRESENT 0x001
|
|
#define _PAGE_NEWPAGE 0x002
|
|
#define _PAGE_NEWPAGE 0x002
|
|
@@ -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
|
|
* this macro returns the index of the entry in the pmd page which would
|
|
* control the given virtual address
|
|
* 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))
|
|
#define pmd_index(address) (((address) >> PMD_SHIFT) & (PTRS_PER_PMD-1))
|
|
|
|
|
|
/*
|
|
/*
|