diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-06-11 09:45:17 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-06-11 09:45:17 +0000 |
commit | cf18fc311bf980084dfb2ca6e9100dfcb2ba8f16 (patch) | |
tree | 7bf7c009618c33ff725be1eb9425d3c66c673b6a /sys/uvm/uvm_page.c | |
parent | 481827fe7f9163817de567f1512e5de0b4a67f50 (diff) |
Allow MD code to define __HAVE_VM_PAGE_MD to add own members into struct vm_page.
From NetBSD.
Diffstat (limited to 'sys/uvm/uvm_page.c')
-rw-r--r-- | sys/uvm/uvm_page.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/uvm/uvm_page.c b/sys/uvm/uvm_page.c index 1903d869278..5acd4c27f06 100644 --- a/sys/uvm/uvm_page.c +++ b/sys/uvm/uvm_page.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_page.c,v 1.42 2002/03/14 01:27:18 millert Exp $ */ +/* $OpenBSD: uvm_page.c,v 1.43 2002/06/11 09:45:16 art Exp $ */ /* $NetBSD: uvm_page.c,v 1.44 2000/11/27 08:40:04 chs Exp $ */ /* @@ -308,6 +308,9 @@ uvm_page_init(kvm_startp, kvm_endp) paddr = ptoa(vm_physmem[lcv].start); for (i = 0 ; i < n ; i++, paddr += PAGE_SIZE) { vm_physmem[lcv].pgs[i].phys_addr = paddr; +#ifdef __HAVE_VM_PAGE_MD + VM_MDPAGE_INIT(&vm_physmem[lcv].pgs[i]); +#endif if (atop(paddr) >= vm_physmem[lcv].avail_start && atop(paddr) <= vm_physmem[lcv].avail_end) { uvmexp.npages++; |