Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/include POOL_VTOPHYS: Cast argument to ALPHA_...



details:   https://anonhg.NetBSD.org/src/rev/7e2c3b3017e9
branches:  trunk
changeset: 545502:7e2c3b3017e9
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Wed Apr 09 22:14:31 2003 +0000

description:
POOL_VTOPHYS: Cast argument to ALPHA_K0SEG_TO_PHYS() to vaddr_t to
prevent gcc complaining about bitwise operations on pointers.

diffstat:

 sys/arch/alpha/include/pmap.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c503ddc89e43 -r 7e2c3b3017e9 sys/arch/alpha/include/pmap.h
--- a/sys/arch/alpha/include/pmap.h     Wed Apr 09 22:14:27 2003 +0000
+++ b/sys/arch/alpha/include/pmap.h     Wed Apr 09 22:14:31 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.59 2003/04/09 18:22:14 thorpej Exp $ */
+/* $NetBSD: pmap.h,v 1.60 2003/04/09 22:14:31 nathanw Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -217,7 +217,7 @@
 /*
  * Other hooks for the pool allocator.
  */
-#define        POOL_VTOPHYS(va)                ALPHA_K0SEG_TO_PHYS((va))
+#define        POOL_VTOPHYS(va)                ALPHA_K0SEG_TO_PHYS((vaddr_t) (va))
 
 boolean_t                      pmap_pageidlezero(paddr_t);
 #define        PMAP_PAGEIDLEZERO(pa)   pmap_pageidlezero((pa))



Home | Main Index | Thread Index | Old Index