Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sgimips bcopy -> memcpy, bzero -> memset
details: https://anonhg.NetBSD.org/src/rev/3769e07e5ac6
branches: trunk
changeset: 512284:3769e07e5ac6
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Jul 08 21:04:50 2001 +0000
description:
bcopy -> memcpy, bzero -> memset
diffstat:
sys/arch/sgimips/dev/zs.c | 6 +++---
sys/arch/sgimips/dev/zs_kgdb.c | 4 ++--
sys/arch/sgimips/hpc/if_sq.c | 12 ++++++------
sys/arch/sgimips/sgimips/bus.c | 4 ++--
sys/arch/sgimips/sgimips/machdep.c | 4 ++--
5 files changed, 15 insertions(+), 15 deletions(-)
diffs (128 lines):
diff -r 9c01181cc42e -r 3769e07e5ac6 sys/arch/sgimips/dev/zs.c
--- a/sys/arch/sgimips/dev/zs.c Sun Jul 08 20:57:34 2001 +0000
+++ b/sys/arch/sgimips/dev/zs.c Sun Jul 08 21:04:50 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zs.c,v 1.4 2001/07/08 20:30:14 thorpej Exp $ */
+/* $NetBSD: zs.c,v 1.5 2001/07/08 21:04:50 thorpej Exp $ */
/*-
* Copyright (c) 1996, 2000 The NetBSD Foundation, Inc.
@@ -256,8 +256,8 @@
}
ch->cs_bustag = zsc->zsc_bustag;
- bcopy(zs_init_reg, cs->cs_creg, 16);
- bcopy(zs_init_reg, cs->cs_preg, 16);
+ memcpy(cs->cs_creg, zs_init_reg, 16);
+ memcpy(cs->cs_preg, zs_init_reg, 16);
zsc_args.hwflags = 0;
zsc_args.consdev = NULL;
diff -r 9c01181cc42e -r 3769e07e5ac6 sys/arch/sgimips/dev/zs_kgdb.c
--- a/sys/arch/sgimips/dev/zs_kgdb.c Sun Jul 08 20:57:34 2001 +0000
+++ b/sys/arch/sgimips/dev/zs_kgdb.c Sun Jul 08 21:04:50 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zs_kgdb.c,v 1.2 2001/07/07 23:13:25 wdk Exp $ */
+/* $NetBSD: zs_kgdb.c,v 1.3 2001/07/08 21:04:50 thorpej Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -108,7 +108,7 @@
{
int s, tconst;
- bcopy(zs_kgdb_regs, cs->cs_preg, 16);
+ memcpy(cs->cs_preg, zs_kgdb_regs, 16);
if (iena) {
cs->cs_preg[1] = ZSWR1_RIE | ZSWR1_SIE;
diff -r 9c01181cc42e -r 3769e07e5ac6 sys/arch/sgimips/hpc/if_sq.c
--- a/sys/arch/sgimips/hpc/if_sq.c Sun Jul 08 20:57:34 2001 +0000
+++ b/sys/arch/sgimips/hpc/if_sq.c Sun Jul 08 21:04:50 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_sq.c,v 1.6 2001/07/08 20:57:34 thorpej Exp $ */
+/* $NetBSD: if_sq.c,v 1.7 2001/07/08 21:04:51 thorpej Exp $ */
/*
* Copyright (c) 2001 Rafal K. Boni
@@ -144,7 +144,7 @@
sq_trace[sq_trace_idx].status = (stat); \
sq_trace[sq_trace_idx].freebuf = (free); \
if (++sq_trace_idx == SQ_TRACEBUF_SIZE) { \
- bzero(&sq_trace, sizeof(sq_trace)); \
+ memset(&sq_trace, 0, sizeof(sq_trace)); \
sq_trace_idx = 0; \
} \
} while (0)
@@ -221,7 +221,7 @@
goto fail_3;
}
- bzero(sc->sc_control, sizeof(struct sq_control));
+ memset(sc->sc_control, 0, sizeof(struct sq_control));
/* Create transmit buffer DMA maps */
for (i = 0; i < SQ_NTXDESC; i++) {
@@ -288,7 +288,7 @@
printf("%s: Ethernet address %s\n", sc->sc_dev.dv_xname,
ether_sprintf(sc->sc_enaddr));
- bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ);
+ strcpy(ifp->if_xname, sc->sc_dev.dv_xname);
ifp->if_softc = sc;
ifp->if_mtu = ETHERMTU;
ifp->if_init = sq_init;
@@ -302,7 +302,7 @@
if_attach(ifp);
ether_ifattach(ifp, sc->sc_enaddr);
- bzero(&sq_trace, sizeof(sq_trace));
+ memset(&sq_trace, 0, sizeof(sq_trace));
/* Done! */
return;
@@ -737,7 +737,7 @@
sq_trace_dump(sc);
- bzero(&sq_trace, sizeof(sq_trace));
+ memset(&sq_trace, 0, sizeof(sq_trace));
sq_trace_idx = 0;
++ifp->if_oerrors;
diff -r 9c01181cc42e -r 3769e07e5ac6 sys/arch/sgimips/sgimips/bus.c
--- a/sys/arch/sgimips/sgimips/bus.c Sun Jul 08 20:57:34 2001 +0000
+++ b/sys/arch/sgimips/sgimips/bus.c Sun Jul 08 21:04:50 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.c,v 1.8 2001/05/26 21:27:13 chs Exp $ */
+/* $NetBSD: bus.c,v 1.9 2001/07/08 21:04:51 thorpej Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -285,7 +285,7 @@
(flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL)
return ENOMEM;
- bzero(mapstore, mapsize);
+ memset(mapstore, 0, mapsize);
map = (struct sgimips_bus_dmamap *)mapstore;
map->_dm_size = size;
map->_dm_segcnt = nsegments;
diff -r 9c01181cc42e -r 3769e07e5ac6 sys/arch/sgimips/sgimips/machdep.c
--- a/sys/arch/sgimips/sgimips/machdep.c Sun Jul 08 20:57:34 2001 +0000
+++ b/sys/arch/sgimips/sgimips/machdep.c Sun Jul 08 21:04:50 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.19 2001/07/08 20:30:13 thorpej Exp $ */
+/* $NetBSD: machdep.c,v 1.20 2001/07/08 21:04:52 thorpej Exp $ */
/*
* Copyright (c) 2000 Soren S. Jorvang
@@ -200,7 +200,7 @@
esym = end;
esym += ((Elf_Ehdr *)end)->e_entry;
kernend = (caddr_t)mips_round_page(esym);
- bzero(edata, end - edata);
+ memset(edata, 0, end - edata);
} else
#endif
{
Home |
Main Index |
Thread Index |
Old Index