diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2015-07-25 20:45:06 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2015-07-25 20:45:06 +0000 |
commit | 1e3dc0a9d8076cbfc9c972b107db41bc12ab928c (patch) | |
tree | e25b62f705a171bce9d17ea8a39dfa696d0a5f7c /sys/arch/m88k/include | |
parent | fd9171aaa7a9d2a2fae0423448393f6be684c654 (diff) |
Only store mod/ref flags in the vm_page_md struct, not in every pv_entry.
Diffstat (limited to 'sys/arch/m88k/include')
-rw-r--r-- | sys/arch/m88k/include/pmap.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/sys/arch/m88k/include/pmap.h b/sys/arch/m88k/include/pmap.h index beef4202ee2..f7b038e72cf 100644 --- a/sys/arch/m88k/include/pmap.h +++ b/sys/arch/m88k/include/pmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.h,v 1.25 2015/02/15 21:34:33 miod Exp $ */ +/* $OpenBSD: pmap.h,v 1.26 2015/07/25 20:45:05 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1991 Carnegie Mellon University @@ -15,10 +15,10 @@ #ifndef _M88K_PMAP_H_ #define _M88K_PMAP_H_ -#include <machine/mmu.h> - #ifdef _KERNEL +#include <machine/mmu.h> + /* * PMAP structure */ @@ -88,18 +88,19 @@ 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; + struct pv_entry pv_ent; + int pv_flags; }; -#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; \ +#define VM_MDPAGE_INIT(pg) \ +do { \ + (pg)->mdpage.pv_ent.pv_next = NULL; \ + (pg)->mdpage.pv_ent.pv_pmap = NULL; \ + (pg)->mdpage.pv_ent.pv_va = 0; \ + (pg)->mdpage.pv_flags = 0; \ } while (0) #endif /* _LOCORE */ |