Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm Fix build of evbarm.



details:   https://anonhg.NetBSD.org/src/rev/4184d7a2d0a9
branches:  trunk
changeset: 758317:4184d7a2d0a9
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Tue Nov 02 06:07:05 2010 +0000

description:
Fix build of evbarm.

diffstat:

 sys/arch/arm/arm32/mem.c          |  6 +++---
 sys/arch/arm/include/arm32/pmap.h |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r 38036c735cf9 -r 4184d7a2d0a9 sys/arch/arm/arm32/mem.c
--- a/sys/arch/arm/arm32/mem.c  Tue Nov 02 03:44:05 2010 +0000
+++ b/sys/arch/arm/arm32/mem.c  Tue Nov 02 06:07:05 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mem.c,v 1.27 2010/10/30 18:35:38 uebayasi Exp $        */
+/*     $NetBSD: mem.c,v 1.28 2010/11/02 06:07:05 uebayasi Exp $        */
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -76,7 +76,7 @@
 #include "opt_compat_netbsd.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.27 2010/10/30 18:35:38 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.28 2010/11/02 06:07:05 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -146,7 +146,7 @@
                        {
                                struct vm_page *pg;
                                pg = PHYS_TO_VM_PAGE(trunc_page(v));
-                               if (pg != NULL && pmap_is_page_colored_p(pg))
+                               if (pg != NULL && pmap_is_page_colored_p(VM_PAGE_TO_MD(pg)))
                                        o = VM_PAGE_TO_MD(pg)->pvh_attrs;
                                else
                                        o = v;
diff -r 38036c735cf9 -r 4184d7a2d0a9 sys/arch/arm/include/arm32/pmap.h
--- a/sys/arch/arm/include/arm32/pmap.h Tue Nov 02 03:44:05 2010 +0000
+++ b/sys/arch/arm/include/arm32/pmap.h Tue Nov 02 06:07:05 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.95 2010/06/16 22:06:53 jmcneill Exp $       */
+/*     $NetBSD: pmap.h,v 1.96 2010/11/02 06:07:06 uebayasi Exp $       */
 
 /*
  * Copyright (c) 2002, 2003 Wasabi Systems, Inc.
@@ -272,8 +272,8 @@
        (((pg)->mdpage.pvh_attrs & PVF_MOD) != 0)
 #define        pmap_is_referenced(pg)  \
        (((pg)->mdpage.pvh_attrs & PVF_REF) != 0)
-#define        pmap_is_page_colored_p(pg)      \
-       (((pg)->mdpage.pvh_attrs & PVF_COLORED) != 0)
+#define        pmap_is_page_colored_p(md)      \
+       (((md)->pvh_attrs & PVF_COLORED) != 0)
 
 #define        pmap_copy(dp, sp, da, l, sa)    /* nothing */
 



Home | Main Index | Thread Index | Old Index