From 150ead6262ab7cbac1aa9cd45e3a1c47544e5c15 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 30 Jan 2014 18:16:42 +0000 Subject: Move declaration of struct vm_page_md from to where it belongs, and compensate in by including before . Tested on all MACHINE_ARCH but amd64 and i386 (and hppa64). --- sys/arch/powerpc/include/pmap.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'sys/arch/powerpc') 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_ */ -- cgit v1.2.3