summaryrefslogtreecommitdiff
path: root/sys/arch/m88k
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/m88k
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/m88k')
-rw-r--r--sys/arch/m88k/include/pmap.h23
-rw-r--r--sys/arch/m88k/include/vmparam.h28
2 files changed, 23 insertions, 28 deletions
diff --git a/sys/arch/m88k/include/pmap.h b/sys/arch/m88k/include/pmap.h
index 27e8ff69b1f..73b9a15b2f6 100644
--- a/sys/arch/m88k/include/pmap.h
+++ b/sys/arch/m88k/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.23 2013/11/02 23:10:30 miod Exp $ */
+/* $OpenBSD: pmap.h,v 1.24 2014/01/30 18:16:41 miod Exp $ */
/*
* Mach Operating System
* Copyright (c) 1991 Carnegie Mellon University
@@ -83,4 +83,25 @@ int pmap_translation_info(pmap_t, vaddr_t, paddr_t *, uint32_t *);
#endif /* _KERNEL */
+#ifndef _LOCORE
+struct pv_entry {
+ struct pv_entry *pv_next; /* next pv_entry */
+ struct pmap *pv_pmap; /* pmap where mapping lies */
+ vaddr_t pv_va; /* virtual address for mapping */
+ int pv_flags;
+};
+
+struct vm_page_md {
+ struct pv_entry pvent;
+};
+
+#define VM_MDPAGE_INIT(pg) do { \
+ (pg)->mdpage.pvent.pv_next = NULL; \
+ (pg)->mdpage.pvent.pv_pmap = NULL; \
+ (pg)->mdpage.pvent.pv_va = 0; \
+ (pg)->mdpage.pvent.pv_flags = 0; \
+} while (0)
+
+#endif /* _LOCORE */
+
#endif /* _M88K_PMAP_H_ */
diff --git a/sys/arch/m88k/include/vmparam.h b/sys/arch/m88k/include/vmparam.h
index b1acd526c43..e7be94ff5c4 100644
--- a/sys/arch/m88k/include/vmparam.h
+++ b/sys/arch/m88k/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.13 2014/01/23 22:06:29 miod Exp $ */
+/* $OpenBSD: vmparam.h,v 1.14 2014/01/30 18:16:41 miod Exp $ */
/*
* Mach Operating System
* Copyright (c) 1992 Carnegie Mellon University
@@ -86,30 +86,4 @@
#define VM_PHYSSEG_STRAT VM_PSTRAT_RANDOM
#define VM_PHYSSEG_NOADD
-#ifndef _LOCORE
-/*
- * pmap-specific data stored in the vm_physmem[] array.
- */
-
-/* XXX - belongs in pmap.h, but put here because of ordering issues */
-struct pv_entry {
- struct pv_entry *pv_next; /* next pv_entry */
- struct pmap *pv_pmap; /* pmap where mapping lies */
- vaddr_t pv_va; /* virtual address for mapping */
- int pv_flags;
-};
-
-struct vm_page_md {
- struct pv_entry pvent;
-};
-
-#define VM_MDPAGE_INIT(pg) do { \
- (pg)->mdpage.pvent.pv_next = NULL; \
- (pg)->mdpage.pvent.pv_pmap = NULL; \
- (pg)->mdpage.pvent.pv_va = 0; \
- (pg)->mdpage.pvent.pv_flags = 0; \
-} while (0)
-
-#endif /* _LOCORE */
-
#endif /* _MACHINE_VM_PARAM_ */