Module Name: src
Committed By: matt
Date: Thu Jun 11 15:13:34 UTC 2015
Modified Files:
src/sys/arch/mips/mips: pmap.c
Log Message:
XXX cast NBPG to vaddr_t to avoid promotion to unsigned long.
To generate a diff of this commit:
cvs rdiff -u -r1.216 -r1.217 src/sys/arch/mips/mips/pmap.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/mips/mips/pmap.c
diff -u src/sys/arch/mips/mips/pmap.c:1.216 src/sys/arch/mips/mips/pmap.c:1.217
--- src/sys/arch/mips/mips/pmap.c:1.216 Thu Jun 11 08:22:09 2015
+++ src/sys/arch/mips/mips/pmap.c Thu Jun 11 15:13:34 2015
@@ -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 @@ pmap_enter(pmap_t pmap, vaddr_t va, padd
#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)) {