Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips XXX cast NBPG to vaddr_t to avoid promoti...



details:   https://anonhg.NetBSD.org/src/rev/ac75846d4420
branches:  trunk
changeset: 808987:ac75846d4420
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Jun 11 15:13:34 2015 +0000

description:
XXX cast NBPG to vaddr_t to avoid promotion to unsigned long.

diffstat:

 sys/arch/mips/mips/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 66107dce4f36 -r ac75846d4420 sys/arch/mips/mips/pmap.c
--- a/sys/arch/mips/mips/pmap.c Thu Jun 11 15:11:13 2015 +0000
+++ b/sys/arch/mips/mips/pmap.c Thu Jun 11 15:13:34 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.216 2015/06/11 08:22:09 matt Exp $  */
+/*     $NetBSD: pmap.c,v 1.217 2015/06/11 15:13:34 matt Exp $  */
 
 /*-
  * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.216 2015/06/11 08:22:09 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.217 2015/06/11 15:13:34 matt Exp $");
 
 /*
  *     Manages physical address maps.
@@ -1631,7 +1631,7 @@
 #ifdef DEBUG
                if (pmapdebug & PDB_ENTER)
                        printf("pmap_enter: flush I cache va %#"PRIxVADDR" (%#"PRIxPADDR")\n",
-                           va - NBPG, pa);
+                           va - (vaddr_t)NBPG, pa);
 #endif
                PMAP_COUNT(exec_mappings);
                if (!PG_MD_EXECPAGE_P(md) && PG_MD_CACHED_P(md)) {



Home | Main Index | Thread Index | Old Index