add (u_long) casts for sparc64.

This commit is contained in:
mrg 2001-08-14 11:55:38 +00:00
parent f059974dc2
commit c9fa7a702a
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: hd64570.c,v 1.18 2001/07/07 15:53:18 thorpej Exp $ */
/* $NetBSD: hd64570.c,v 1.19 2001/08/14 11:55:38 mrg Exp $ */
/*
* Copyright (c) 1999 Christian E. Hopps
@ -184,7 +184,7 @@ static void sca_frame_print(sca_port_t *, sca_desc_t *, u_int8_t *);
#define sca_write_1(sc, reg, val) (sc)->sc_write_1(sc, reg, val)
#define sca_write_2(sc, reg, val) (sc)->sc_write_2(sc, reg, val)
#define sca_page_addr(sc, addr) ((bus_addr_t)(addr) & (sc)->scu_pagemask)
#define sca_page_addr(sc, addr) ((bus_addr_t)(u_long)(addr) & (sc)->scu_pagemask)
static inline void
msci_write_1(sca_port_t *scp, u_int reg, u_int8_t val)

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ntwoc_pci.c,v 1.4 2000/12/28 22:59:13 sommerfeld Exp $ */
/* $NetBSD: if_ntwoc_pci.c,v 1.5 2001/08/14 11:55:38 mrg Exp $ */
/*
* Copyright (c) 1998 Vixie Enterprises
@ -718,7 +718,7 @@ ntwoc_pci_setup_dma(struct sca_softc *sc)
*/
if (sc->scu_allocsize != addroff)
printf("ERROR: scu_allocsize != addroff: %lu != %lu\n",
sc->scu_allocsize, addroff);
(u_long)sc->scu_allocsize, addroff);
}
#if __NetBSD_Version__ >= 104160000

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ti.c,v 1.40 2001/07/19 16:36:15 thorpej Exp $ */
/* $NetBSD: if_ti.c,v 1.41 2001/08/14 11:55:38 mrg Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@ -1690,7 +1690,7 @@ static void ti_attach(parent, self, aux)
}
}
if (nolinear == 0)
sc->ti_vhandle = (void *)(sc->ti_bhandle); /* XXX XXX XXX */
sc->ti_vhandle = (void *)(u_long)(sc->ti_bhandle); /* XXX XXX XXX */
else
sc->ti_vhandle = NULL;