Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 fix warnings.



details:   https://anonhg.NetBSD.org/src/rev/2a8de3312baf
branches:  trunk
changeset: 495397:2a8de3312baf
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Jul 27 13:59:26 2000 +0000

description:
fix warnings.

diffstat:

 sys/arch/sparc64/sparc64/mem.c  |  5 +++--
 sys/arch/sparc64/sparc64/pmap.c |  4 ++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r ca752d9e3f27 -r 2a8de3312baf sys/arch/sparc64/sparc64/mem.c
--- a/sys/arch/sparc64/sparc64/mem.c    Thu Jul 27 13:58:54 2000 +0000
+++ b/sys/arch/sparc64/sparc64/mem.c    Thu Jul 27 13:59:26 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mem.c,v 1.14 2000/06/29 07:37:58 mrg Exp $ */
+/*     $NetBSD: mem.c,v 1.15 2000/07/27 13:59:26 mrg Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -211,7 +211,8 @@
                        v = uio->uio_offset;
                        msgbufsz = msgbufp->msg_bufs +
                                offsetof(struct kern_msgbuf, msg_bufc);
-                       if (v >= msgbufp && v < (msgbufp + msgbufsz)) {
+                       if (v >= (vaddr_t)msgbufp &&
+                           v < (vaddr_t)(msgbufp + msgbufsz)) {
                                c = min(iov->iov_len, msgbufsz);
 #if 1          /* Don't know where PROMs are on Ultras.  Think it's at f000000 */
                        } else if (v >= prom_vstart && v < prom_vend &&
diff -r ca752d9e3f27 -r 2a8de3312baf sys/arch/sparc64/sparc64/pmap.c
--- a/sys/arch/sparc64/sparc64/pmap.c   Thu Jul 27 13:58:54 2000 +0000
+++ b/sys/arch/sparc64/sparc64/pmap.c   Thu Jul 27 13:59:26 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.67 2000/07/18 20:19:56 pk Exp $     */
+/*     $NetBSD: pmap.c,v 1.68 2000/07/27 13:59:26 mrg Exp $    */
 #undef NO_VCACHE /* Don't forget the locked TLB in dostart */
 #define HWREF 1 
 #undef BOOT_DEBUG
@@ -1223,7 +1223,7 @@
                         ("Done inserting cpu_info into pmap_kernel()\r\n"));
        }
 
-       vmmap = reserve_dumppages(vmmap);
+       vmmap = (vaddr_t)reserve_dumppages((caddr_t)(u_long)vmmap);
        /*
         * Set up bounds of allocatable memory for vmstat et al.
         */



Home | Main Index | Thread Index | Old Index