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 give BSDB_MAP a value. add a shush...



details:   https://anonhg.NetBSD.org/src/rev/663aa26b6e87
branches:  trunk
changeset: 488104:663aa26b6e87
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Jun 18 07:13:41 2000 +0000

description:
give BSDB_MAP a value.  add a shushing cast.

diffstat:

 sys/arch/sparc64/sparc64/machdep.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 6b1d34f73108 -r 663aa26b6e87 sys/arch/sparc64/sparc64/machdep.c
--- a/sys/arch/sparc64/sparc64/machdep.c        Sun Jun 18 07:12:39 2000 +0000
+++ b/sys/arch/sparc64/sparc64/machdep.c        Sun Jun 18 07:13:41 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.66 2000/06/12 23:32:48 eeh Exp $ */
+/*     $NetBSD: machdep.c,v 1.67 2000/06/18 07:13:41 mrg Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -130,6 +130,7 @@
 /* #include "fb.h" */
 
 int bus_space_debug = 0; /* This may be used by macros elsewhere. */
+#define        BSDB_MAP        0x1
 #ifdef DEBUG
 #define DPRINTF(l, s)   do { if (bus_space_debug & l) printf s; } while (0)
 #else
@@ -1576,7 +1577,7 @@
        tmp = (paddr_t)bh;
        result = (probeget(tmp + offset, bus_type_asi[tag->type], size) != -1);
        if (result && callback != NULL)
-               result = (*callback)(tmp, arg);
+               result = (*callback)((char *)(u_long)tmp, arg);
        bus_space_unmap(tag, bh, size);
        return (result);
 }



Home | Main Index | Thread Index | Old Index