Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sun3/sun3x bcopy() -> memcpy(), bzero() -> memset()
details: https://anonhg.NetBSD.org/src/rev/689767fb21d2
branches: trunk
changeset: 514564:689767fb21d2
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Wed Sep 05 14:18:10 2001 +0000
description:
bcopy() -> memcpy(), bzero() -> memset()
diffstat:
sys/arch/sun3/sun3x/clock.c | 4 ++--
sys/arch/sun3/sun3x/idprom.c | 4 ++--
sys/arch/sun3/sun3x/locore2.c | 6 +++---
sys/arch/sun3/sun3x/machdep.c | 4 ++--
sys/arch/sun3/sun3x/mem.c | 4 ++--
sys/arch/sun3/sun3x/pmap.c | 12 ++++++------
6 files changed, 17 insertions(+), 17 deletions(-)
diffs (147 lines):
diff -r d5ecc4a944ef -r 689767fb21d2 sys/arch/sun3/sun3x/clock.c
--- a/sys/arch/sun3/sun3x/clock.c Wed Sep 05 14:03:48 2001 +0000
+++ b/sys/arch/sun3/sun3x/clock.c Wed Sep 05 14:18:10 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.19 2001/09/05 12:37:25 tsutsui Exp $ */
+/* $NetBSD: clock.c,v 1.20 2001/09/05 14:18:10 tsutsui Exp $ */
/*
* Copyright (c) 1994 Gordon W. Ross
@@ -539,7 +539,7 @@
struct clock_ymdhms dt;
long secs;
- bzero(&dt, sizeof(dt));
+ memset(&dt, 0, sizeof(dt));
#ifdef SUN3_470
if (intersil_va)
diff -r d5ecc4a944ef -r 689767fb21d2 sys/arch/sun3/sun3x/idprom.c
--- a/sys/arch/sun3/sun3x/idprom.c Wed Sep 05 14:03:48 2001 +0000
+++ b/sys/arch/sun3/sun3x/idprom.c Wed Sep 05 14:18:10 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: idprom.c,v 1.8 1999/04/12 01:30:22 gwr Exp $ */
+/* $NetBSD: idprom.c,v 1.9 2001/09/05 14:18:10 tsutsui Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -123,7 +123,7 @@
u_char *eaddrp;
{
- bcopy(identity_prom.idp_etheraddr, eaddrp, 6);
+ memcpy(eaddrp, identity_prom.idp_etheraddr, 6);
}
/*
diff -r d5ecc4a944ef -r 689767fb21d2 sys/arch/sun3/sun3x/locore2.c
--- a/sys/arch/sun3/sun3x/locore2.c Wed Sep 05 14:03:48 2001 +0000
+++ b/sys/arch/sun3/sun3x/locore2.c Wed Sep 05 14:18:10 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore2.c,v 1.25 2001/09/05 12:37:25 tsutsui Exp $ */
+/* $NetBSD: locore2.c,v 1.26 2001/09/05 14:18:10 tsutsui Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -175,7 +175,7 @@
*/
proc0paddr = (struct user *) nextva;
nextva += USPACE;
- bzero((caddr_t)proc0paddr, USPACE);
+ memset((caddr_t)proc0paddr, 0, USPACE);
proc0.p_addr = proc0paddr;
/*
@@ -200,7 +200,7 @@
{
/* First, Clear BSS. */
- bzero(edata, end - edata);
+ memset(edata, 0, end - edata);
/* Set v_handler, get boothowto. */
sunmon_init();
diff -r d5ecc4a944ef -r 689767fb21d2 sys/arch/sun3/sun3x/machdep.c
--- a/sys/arch/sun3/sun3x/machdep.c Wed Sep 05 14:03:48 2001 +0000
+++ b/sys/arch/sun3/sun3x/machdep.c Wed Sep 05 14:18:10 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.73 2001/09/05 12:37:25 tsutsui Exp $ */
+/* $NetBSD: machdep.c,v 1.74 2001/09/05 14:18:10 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -666,7 +666,7 @@
blkno = dumplo;
todo = dumpsize; /* pages */
vaddr = (char *)dumppage;
- bzero(vaddr, NBPG);
+ memset(vaddr, 0, NBPG);
/* Set pointers to all three parts. */
kseg_p = (kcore_seg_t *)vaddr;
diff -r d5ecc4a944ef -r 689767fb21d2 sys/arch/sun3/sun3x/mem.c
--- a/sys/arch/sun3/sun3x/mem.c Wed Sep 05 14:03:48 2001 +0000
+++ b/sys/arch/sun3/sun3x/mem.c Wed Sep 05 14:18:10 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mem.c,v 1.20 2001/09/05 12:37:25 tsutsui Exp $ */
+/* $NetBSD: mem.c,v 1.21 2001/09/05 14:18:11 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -206,7 +206,7 @@
if (devzeropage == NULL) {
devzeropage = (caddr_t)
malloc(NBPG, M_TEMP, M_WAITOK);
- bzero(devzeropage, NBPG);
+ memset(devzeropage, 0, NBPG);
}
c = min(iov->iov_len, NBPG);
error = uiomove(devzeropage, c, uio);
diff -r d5ecc4a944ef -r 689767fb21d2 sys/arch/sun3/sun3x/pmap.c
--- a/sys/arch/sun3/sun3x/pmap.c Wed Sep 05 14:03:48 2001 +0000
+++ b/sys/arch/sun3/sun3x/pmap.c Wed Sep 05 14:18:10 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.70 2001/08/20 12:00:51 wiz Exp $ */
+/* $NetBSD: pmap.c,v 1.71 2001/09/05 14:18:11 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -675,17 +675,17 @@
*/
size = sizeof(mmu_long_dte_t) * MMU_A_TBL_SIZE;
kernAbase = pmap_bootstrap_alloc(size);
- bzero(kernAbase, size);
+ memset(kernAbase, 0, size);
/* Now the level-B kernel tables... */
size = sizeof(mmu_short_dte_t) * MMU_B_TBL_SIZE * KERN_B_TABLES;
kernBbase = pmap_bootstrap_alloc(size);
- bzero(kernBbase, size);
+ memset(kernBbase, 0, size);
/* Now the level-C kernel tables... */
size = sizeof(mmu_short_pte_t) * MMU_C_TBL_SIZE * KERN_C_TABLES;
kernCbase = pmap_bootstrap_alloc(size);
- bzero(kernCbase, size);
+ memset(kernCbase, 0, size);
/*
* Note: In order for the PV system to work correctly, the kernel
* and user-level C tables must be allocated contiguously.
@@ -1095,7 +1095,7 @@
* or kernel, mapping. This ensures that every process has
* the kernel mapped in the top part of its address space.
*/
- bcopy(kernAbase, a_tbl->at_dtbl, MMU_A_TBL_SIZE *
+ memcpy(a_tbl->at_dtbl, kernAbase, MMU_A_TBL_SIZE *
sizeof(mmu_long_dte_t));
/*
@@ -2492,7 +2492,7 @@
pmap_pinit(pmap)
pmap_t pmap;
{
- bzero(pmap, sizeof(struct pmap));
+ memset(pmap, 0, sizeof(struct pmap));
pmap->pm_a_tmgr = NULL;
pmap->pm_a_phys = kernAphys;
pmap->pm_refcount = 1;
Home |
Main Index |
Thread Index |
Old Index