Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64 add some casts to (u_long) to shut up gcc. ...
details: https://anonhg.NetBSD.org/src/rev/f787c1ee4c46
branches: trunk
changeset: 484881:f787c1ee4c46
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Apr 14 08:29:03 2000 +0000
description:
add some casts to (u_long) to shut up gcc. cleanup unused variables
diffstat:
sys/arch/sparc64/dev/cgsix_sbus.c | 13 ++++++-------
sys/arch/sparc64/sparc64/db_interface.c | 6 +++---
2 files changed, 9 insertions(+), 10 deletions(-)
diffs (89 lines):
diff -r 8afd88430bce -r f787c1ee4c46 sys/arch/sparc64/dev/cgsix_sbus.c
--- a/sys/arch/sparc64/dev/cgsix_sbus.c Fri Apr 14 08:22:49 2000 +0000
+++ b/sys/arch/sparc64/dev/cgsix_sbus.c Fri Apr 14 08:29:03 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgsix_sbus.c,v 1.4 1999/05/23 02:45:19 eeh Exp $ */
+/* $NetBSD: cgsix_sbus.c,v 1.5 2000/04/14 08:29:03 mrg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -114,7 +114,6 @@
int node, isconsole;
char *name;
bus_space_handle_t bh;
- extern struct tty *fbconstty;
/* Remember cookies for cgsix_mmap() */
sc->sc_bustag = sa->sa_bustag;
@@ -142,7 +141,7 @@
printf("%s: cannot map brooktree registers\n", self->dv_xname);
return;
}
- sc->sc_bt = (struct bt_regs *)bh;
+ sc->sc_bt = (struct bt_regs *)(u_long)bh;
if (sbus_bus_map(sa->sa_bustag, sa->sa_slot,
sa->sa_offset + CGSIX_FHC_OFFSET,
@@ -152,7 +151,7 @@
printf("%s: cannot map FHC registers\n", self->dv_xname);
return;
}
- sc->sc_fhc = (int *)bh;
+ sc->sc_fhc = (int *)(u_long)bh;
if (sbus_bus_map(sa->sa_bustag, sa->sa_slot,
sa->sa_offset + CGSIX_THC_OFFSET,
@@ -162,7 +161,7 @@
printf("%s: cannot map THC registers\n", self->dv_xname);
return;
}
- sc->sc_thc = (struct cg6_thc *)bh;
+ sc->sc_thc = (struct cg6_thc *)(u_long)bh;
if (sbus_bus_map(sa->sa_bustag, sa->sa_slot,
sa->sa_offset + CGSIX_TEC_OFFSET,
@@ -172,7 +171,7 @@
printf("%s: cannot map TEC registers\n", self->dv_xname);
return;
}
- sc->sc_tec = (struct cg6_tec_xxx *)bh;
+ sc->sc_tec = (struct cg6_tec_xxx *)(u_long)bh;
sbus_establish(&sc->sc_sd, &sc->sc_dev);
name = getpropstring(node, "model");
@@ -188,7 +187,7 @@
printf("%s: cannot map pixels\n", self->dv_xname);
return;
}
- sc->sc_fb.fb_pixels = (caddr_t)bh;
+ sc->sc_fb.fb_pixels = (caddr_t)(u_long)bh;
}
cg6attach(sc, name, isconsole, node == fbnode);
diff -r 8afd88430bce -r f787c1ee4c46 sys/arch/sparc64/sparc64/db_interface.c
--- a/sys/arch/sparc64/sparc64/db_interface.c Fri Apr 14 08:22:49 2000 +0000
+++ b/sys/arch/sparc64/sparc64/db_interface.c Fri Apr 14 08:29:03 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.29 2000/04/06 13:32:49 mrg Exp $ */
+/* $NetBSD: db_interface.c,v 1.30 2000/04/14 08:29:03 mrg Exp $ */
/*
* Mach Operating System
@@ -839,6 +839,8 @@
#include <uvm/uvm.h>
void db_uvmhistdump __P((db_expr_t, int, db_expr_t, char *));
+extern void uvmhist_dump __P((struct uvm_history *));
+extern struct uvm_history_head uvm_histories;
void
db_uvmhistdump(addr, have_addr, count, modif)
@@ -847,8 +849,6 @@
db_expr_t count;
char *modif;
{
- extern void uvmhist_dump __P((struct uvm_history *));
- extern struct uvm_history_head uvm_histories;
uvmhist_dump(uvm_histories.lh_first);
}
Home |
Main Index |
Thread Index |
Old Index