summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-01-30 18:16:42 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-01-30 18:16:42 +0000
commit150ead6262ab7cbac1aa9cd45e3a1c47544e5c15 (patch)
tree1e82bc7c9335d090e0a0f0f3f4e179717b201a6e /sys/arch/powerpc
parentba74087eb3865e1609b3d666f13601206dc40297 (diff)
Move declaration of struct vm_page_md from <machine/vmparam.h> to
<machine/pmap.h> where it belongs, and compensate in <uvm/uvm_extern.h> by including <uvm/uvm_pmap.h> before <uvm/uvm_page.h>. Tested on all MACHINE_ARCH but amd64 and i386 (and hppa64).
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r--sys/arch/powerpc/include/pmap.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/arch/powerpc/include/pmap.h b/sys/arch/powerpc/include/pmap.h
index 03ae397f4d7..fe6c6395d43 100644
--- a/sys/arch/powerpc/include/pmap.h
+++ b/sys/arch/powerpc/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.49 2013/03/23 16:12:26 deraadt Exp $ */
+/* $OpenBSD: pmap.h,v 1.50 2014/01/30 18:16:41 miod Exp $ */
/* $NetBSD: pmap.h,v 1.1 1996/09/30 16:34:29 ws Exp $ */
/*-
@@ -167,5 +167,15 @@ int reserve_dumppages(caddr_t p);
#define PMAP_NOCACHE 0x1 /* map uncached */
#endif /* _KERNEL */
+
+struct vm_page_md {
+ LIST_HEAD(,pte_desc) pv_list;
+};
+
+#define VM_MDPAGE_INIT(pg) do { \
+ LIST_INIT(&((pg)->mdpage.pv_list)); \
+} while (0)
+
#endif /* _LOCORE */
+
#endif /* _POWERPC_PMAP_H_ */