Module Name: src Committed By: uebayasi Date: Wed Nov 10 01:24:47 UTC 2010
Modified Files: src/sys/uvm: uvm_page.h Log Message: Prepare vm_physmem[] -> (*vm_physmem)[] migration, so that physical segments can be changed at run-time. Pointers are easier to update. To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 src/sys/uvm/uvm_page.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/uvm/uvm_page.h diff -u src/sys/uvm/uvm_page.h:1.61 src/sys/uvm/uvm_page.h:1.62 --- src/sys/uvm/uvm_page.h:1.61 Sat Sep 25 01:42:40 2010 +++ src/sys/uvm/uvm_page.h Wed Nov 10 01:24:46 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_page.h,v 1.61 2010/09/25 01:42:40 matt Exp $ */ +/* $NetBSD: uvm_page.h,v 1.62 2010/11/10 01:24:46 uebayasi Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -255,6 +255,9 @@ * physical memory config is stored in vm_physmem. */ +#define VM_PHYSMEM_PTR(i) (&vm_physmem[i]) +#define VM_PHYSDEV_PTR(i) (&vm_physdev[i]) /* XXX not yet */ + extern struct vm_physseg vm_physmem[VM_PHYSSEG_MAX]; extern int vm_nphysseg;