Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/dev Make gcc like a cast.



details:   https://anonhg.NetBSD.org/src/rev/84bc1c722f51
branches:  trunk
changeset: 500076:84bc1c722f51
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Mon Dec 04 20:29:34 2000 +0000

description:
Make gcc like a cast.

diffstat:

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

diffs (19 lines):

diff -r bc8f205aa036 -r 84bc1c722f51 sys/arch/sparc64/dev/psycho.c
--- a/sys/arch/sparc64/dev/psycho.c     Mon Dec 04 20:27:02 2000 +0000
+++ b/sys/arch/sparc64/dev/psycho.c     Mon Dec 04 20:29:34 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: psycho.c,v 1.27 2000/12/04 16:01:18 fvdl Exp $ */
+/*     $NetBSD: psycho.c,v 1.28 2000/12/04 20:29:34 fvdl Exp $ */
 
 /*
  * Copyright (c) 1999, 2000 Matthew R. Green
@@ -272,7 +272,8 @@
                 PCICTL_ARB_PRIO |
                 PCICTL_RTRYWAIT);
        bus_space_write_8(sc->sc_bustag,
-           (bus_space_handle_t)&sc->sc_regs->psy_pcictl[0].pci_csr, 0, csr);
+           (bus_space_handle_t)(u_long)&sc->sc_regs->psy_pcictl[0].pci_csr,
+           0, csr);
 
        /* allocate a pair of psycho_pbm's for our simba's */
        sc->sc_sabre = malloc(sizeof *pp, M_DEVBUF, M_NOWAIT);



Home | Main Index | Thread Index | Old Index