summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorPaul Irofti <pirofti@cvs.openbsd.org>2013-05-29 20:36:13 +0000
committerPaul Irofti <pirofti@cvs.openbsd.org>2013-05-29 20:36:13 +0000
commit9aed1af5985c1aba5c1d2229c080737fa4228099 (patch)
tree5bb47bb555931b46eb3b429606447a23ee422238 /sys/arch
parentffa2fb423bd06f856fd073b2cf47503ca0e8e11c (diff)
Add PMAP_PA_MASK to mips64. Needed for loongson hibernate.
Okay miod@.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mips64/include/pmap.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/mips64/include/pmap.h b/sys/arch/mips64/include/pmap.h
index aee2fb6b8eb..9db0f268fff 100644
--- a/sys/arch/mips64/include/pmap.h
+++ b/sys/arch/mips64/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.28 2012/05/10 21:12:26 miod Exp $ */
+/* $OpenBSD: pmap.h,v 1.29 2013/05/29 20:36:12 pirofti Exp $ */
/*
* Copyright (c) 1987 Carnegie-Mellon University
@@ -168,6 +168,12 @@ vaddr_t pmap_map_direct(vm_page_t);
vm_page_t pmap_unmap_direct(vaddr_t);
#endif
+/*
+ * MD flags to pmap_enter:
+ */
+
+#define PMAP_PA_MASK ~((paddr_t)PAGE_MASK)
+
#endif /* _KERNEL */
#endif /* !_MIPS64_PMAP_H_ */