Module Name: src Committed By: matt Date: Fri Apr 29 08:16:43 UTC 2011
Modified Files: src/sys/uvm [matt-nb5-mips64]: uvm_page.h Log Message: Add macros from current (VM_PAGE_TO_MD, VM_PHYSMEM_PTR, VM_PHYSMEM_PTR_SWAP) To generate a diff of this commit: cvs rdiff -u -r1.55.14.1 -r1.55.14.2 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.55.14.1 src/sys/uvm/uvm_page.h:1.55.14.2 --- src/sys/uvm/uvm_page.h:1.55.14.1 Sat Jan 23 19:54:04 2010 +++ src/sys/uvm/uvm_page.h Fri Apr 29 08:16:42 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_page.h,v 1.55.14.1 2010/01/23 19:54:04 matt Exp $ */ +/* $NetBSD: uvm_page.h,v 1.55.14.2 2011/04/29 08:16:42 matt 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_PHYSMEM_PTR_SWAP(i, j) \ + do { vm_physmem[(i)] = vm_physmem[(j)]; } while (0) extern struct vm_physseg vm_physmem[VM_PHYSSEG_MAX]; extern int vm_nphysseg; @@ -305,6 +308,10 @@ #define VM_PAGE_TO_PHYS(entry) ((entry)->phys_addr) +#ifdef __HAVE_VM_PAGE_MD +#define VM_PAGE_TO_MD(pg) (&(pg)->mdpage) +#endif + /* * Compute the page color bucket for a given page. */