Module Name:    src
Committed By:   uebayasi
Date:           Thu Feb 25 03:19:51 UTC 2010

Modified Files:
        src/sys/arch/arm/arm32 [uebayasi-xip]: mem.c

Log Message:
pg->mdpage -> VM_PAGE_TO_MD(pg)


To generate a diff of this commit:
cvs rdiff -u -r1.26.6.1 -r1.26.6.2 src/sys/arch/arm/arm32/mem.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/arm32/mem.c
diff -u src/sys/arch/arm/arm32/mem.c:1.26.6.1 src/sys/arch/arm/arm32/mem.c:1.26.6.2
--- src/sys/arch/arm/arm32/mem.c:1.26.6.1	Wed Feb 10 14:20:23 2010
+++ src/sys/arch/arm/arm32/mem.c	Thu Feb 25 03:19:51 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: mem.c,v 1.26.6.1 2010/02/10 14:20:23 uebayasi Exp $	*/
+/*	$NetBSD: mem.c,v 1.26.6.2 2010/02/25 03:19:51 uebayasi Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -74,9 +74,11 @@
 
 #include "opt_arm32_pmap.h"
 #include "opt_compat_netbsd.h"
+#include "opt_device_page.h"
+#include "opt_xip.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.26.6.1 2010/02/10 14:20:23 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.26.6.2 2010/02/25 03:19:51 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -144,7 +146,7 @@
 			{
 				struct vm_page *pg;
 				pg = PHYS_TO_VM_PAGE(trunc_page(v));
-				if (pg != NULL && pmap_is_page_colored_p(&pg->mdpage))
+				if (pg != NULL && pmap_is_page_colored_p(VM_PAGE_TO_MD(pg)))
 					o = pg->mdpage.pvh_attrs;
 				else
 					o = v;

Reply via email to