summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-05-23 12:52:58 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-05-23 12:52:58 +0000
commit5e1f225fc0d4793e1fdc85660b1fdf69095c38f3 (patch)
tree229660073999b8e43dfee99eff59975bc0e7be88 /include
parentb02fba343994b22476ff5daf48028d8f2cf7dc1a (diff)
Fix vmalloc for mips64.
Diffstat (limited to 'include')
-rw-r--r--include/asm-mips64/pgtable.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-mips64/pgtable.h b/include/asm-mips64/pgtable.h
index bd925fd6b..db48fc09e 100644
--- a/include/asm-mips64/pgtable.h
+++ b/include/asm-mips64/pgtable.h
@@ -314,6 +314,13 @@ extern inline void pte_clear(pte_t *ptep)
}
/*
+ * (pmds are folded into pgds so this doesnt get actually called,
+ * but the define is needed for a generic inline function.)
+ */
+#define set_pmd(pmdptr, pmdval) (*(pmdptr) = pmdval)
+#define set_pgd(pgdptr, pgdval) (*(pgdptr) = pgdval)
+
+/*
* Empty pmd entries point to the invalid_pte_table.
*/
extern inline int pmd_none(pmd_t pmd)