Module Name:    src
Committed By:   uebayasi
Date:           Wed Feb 10 14:07:23 UTC 2010

Modified Files:
        src/sys/uvm [uebayasi-xip]: uvm_page.h

Log Message:
Introduce VM_PAGE_TO_MD(); lookup vm_page_md from a given vm_page.


To generate a diff of this commit:
cvs rdiff -u -r1.59.2.7 -r1.59.2.8 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.59.2.7 src/sys/uvm/uvm_page.h:1.59.2.8
--- src/sys/uvm/uvm_page.h:1.59.2.7	Wed Feb 10 02:12:39 2010
+++ src/sys/uvm/uvm_page.h	Wed Feb 10 14:07:23 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_page.h,v 1.59.2.7 2010/02/10 02:12:39 uebayasi Exp $	*/
+/*	$NetBSD: uvm_page.h,v 1.59.2.8 2010/02/10 14:07:23 uebayasi Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -316,6 +316,13 @@
 
 #define VM_PAGE_TO_PHYS(entry)	uvm_vm_page_to_phys(entry)
 
+#ifndef XIP
+#define	VM_PAGE_TO_MD(pg)	
+#else
+#define	VM_PAGE_TO_MD(pg) \
+    (uvm_pageisdevice_p(pg) ? vm_page_device_mdpage_lookup(pg) ; &(pg)->mdpage)
+#endif
+
 /*
  * Compute the page color bucket for a given page.
  */

Reply via email to