diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-10-17 02:21:09 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-10-17 02:21:09 +0000 |
commit | a8af29dd1c365501a4d1d75246533064e49191da (patch) | |
tree | 25e4efd23d643b7ea74ac3db3ab1d7927e68b90e /sys/arch/hppa/include/vmparam.h | |
parent | 184f0f0cf626ba16e8792cf6eed29798ef876839 (diff) |
convert to use vm_page_md instead of pmap_physseg, make code smaller and simpler, indeed; after art's suggestion and by looking into his diffs oneyed
Diffstat (limited to 'sys/arch/hppa/include/vmparam.h')
-rw-r--r-- | sys/arch/hppa/include/vmparam.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/sys/arch/hppa/include/vmparam.h b/sys/arch/hppa/include/vmparam.h index 0b60e4be80e..bb299b8c01a 100644 --- a/sys/arch/hppa/include/vmparam.h +++ b/sys/arch/hppa/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.23 2002/09/05 18:41:19 mickey Exp $ */ +/* $OpenBSD: vmparam.h,v 1.24 2002/10/17 02:21:08 mickey Exp $ */ /* * Copyright (c) 1988-1994, The University of Utah and @@ -103,11 +103,20 @@ #define VM_FREELIST_DEFAULT 0 #define VM_FREELIST_ARCH 1 -#ifndef _LOCORE -#define __HAVE_PMAP_PHYSSEG -struct pmap_physseg { - struct pv_head *pvhead; +#if defined(_KERNEL) && !defined(_LOCORE) +#define __HAVE_VM_PAGE_MD +struct pv_entry; +struct vm_page_md { + struct simplelock pvh_lock; /* locks every pv on this list */ + struct pv_entry *pvh_list; /* head of list (locked by pvh_lock) */ + u_int pvh_attrs; /* to preserve ref/mod */ }; + +#define VM_MDPAGE_INIT(pg) do { \ + simple_lock_init(&(pg)->mdpage.pvh_lock); \ + (pg)->mdpage.pvh_list = NULL; \ + (pg)->mdpage.pvh_attrs = 0; \ +} while (0) #endif #endif /* _MACHINE_VMPARAM_H_ */ |