bcopy() -> memcpy(), bzero() -> memset()
This commit is contained in:
parent
fa5d9f83c2
commit
1abb4c9be6
|
@ -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
|
* Copyright (c) 1994 Gordon W. Ross
|
||||||
|
@ -539,7 +539,7 @@ clk_get_secs()
|
||||||
struct clock_ymdhms dt;
|
struct clock_ymdhms dt;
|
||||||
long secs;
|
long secs;
|
||||||
|
|
||||||
bzero(&dt, sizeof(dt));
|
memset(&dt, 0, sizeof(dt));
|
||||||
|
|
||||||
#ifdef SUN3_470
|
#ifdef SUN3_470
|
||||||
if (intersil_va)
|
if (intersil_va)
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||||
|
@ -123,7 +123,7 @@ idprom_etheraddr(eaddrp)
|
||||||
u_char *eaddrp;
|
u_char *eaddrp;
|
||||||
{
|
{
|
||||||
|
|
||||||
bcopy(identity_prom.idp_etheraddr, eaddrp, 6);
|
memcpy(eaddrp, identity_prom.idp_etheraddr, 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||||
|
@ -175,7 +175,7 @@ _vm_init()
|
||||||
*/
|
*/
|
||||||
proc0paddr = (struct user *) nextva;
|
proc0paddr = (struct user *) nextva;
|
||||||
nextva += USPACE;
|
nextva += USPACE;
|
||||||
bzero((caddr_t)proc0paddr, USPACE);
|
memset((caddr_t)proc0paddr, 0, USPACE);
|
||||||
proc0.p_addr = proc0paddr;
|
proc0.p_addr = proc0paddr;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -200,7 +200,7 @@ _bootstrap()
|
||||||
{
|
{
|
||||||
|
|
||||||
/* First, Clear BSS. */
|
/* First, Clear BSS. */
|
||||||
bzero(edata, end - edata);
|
memset(edata, 0, end - edata);
|
||||||
|
|
||||||
/* Set v_handler, get boothowto. */
|
/* Set v_handler, get boothowto. */
|
||||||
sunmon_init();
|
sunmon_init();
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1988 University of Utah.
|
||||||
|
@ -666,7 +666,7 @@ dumpsys()
|
||||||
blkno = dumplo;
|
blkno = dumplo;
|
||||||
todo = dumpsize; /* pages */
|
todo = dumpsize; /* pages */
|
||||||
vaddr = (char *)dumppage;
|
vaddr = (char *)dumppage;
|
||||||
bzero(vaddr, NBPG);
|
memset(vaddr, 0, NBPG);
|
||||||
|
|
||||||
/* Set pointers to all three parts. */
|
/* Set pointers to all three parts. */
|
||||||
kseg_p = (kcore_seg_t *)vaddr;
|
kseg_p = (kcore_seg_t *)vaddr;
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1988 University of Utah.
|
||||||
|
@ -206,7 +206,7 @@ mmrw(dev, uio, flags)
|
||||||
if (devzeropage == NULL) {
|
if (devzeropage == NULL) {
|
||||||
devzeropage = (caddr_t)
|
devzeropage = (caddr_t)
|
||||||
malloc(NBPG, M_TEMP, M_WAITOK);
|
malloc(NBPG, M_TEMP, M_WAITOK);
|
||||||
bzero(devzeropage, NBPG);
|
memset(devzeropage, 0, NBPG);
|
||||||
}
|
}
|
||||||
c = min(iov->iov_len, NBPG);
|
c = min(iov->iov_len, NBPG);
|
||||||
error = uiomove(devzeropage, c, uio);
|
error = uiomove(devzeropage, c, uio);
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||||
|
@ -675,17 +675,17 @@ pmap_bootstrap(nextva)
|
||||||
*/
|
*/
|
||||||
size = sizeof(mmu_long_dte_t) * MMU_A_TBL_SIZE;
|
size = sizeof(mmu_long_dte_t) * MMU_A_TBL_SIZE;
|
||||||
kernAbase = pmap_bootstrap_alloc(size);
|
kernAbase = pmap_bootstrap_alloc(size);
|
||||||
bzero(kernAbase, size);
|
memset(kernAbase, 0, size);
|
||||||
|
|
||||||
/* Now the level-B kernel tables... */
|
/* Now the level-B kernel tables... */
|
||||||
size = sizeof(mmu_short_dte_t) * MMU_B_TBL_SIZE * KERN_B_TABLES;
|
size = sizeof(mmu_short_dte_t) * MMU_B_TBL_SIZE * KERN_B_TABLES;
|
||||||
kernBbase = pmap_bootstrap_alloc(size);
|
kernBbase = pmap_bootstrap_alloc(size);
|
||||||
bzero(kernBbase, size);
|
memset(kernBbase, 0, size);
|
||||||
|
|
||||||
/* Now the level-C kernel tables... */
|
/* Now the level-C kernel tables... */
|
||||||
size = sizeof(mmu_short_pte_t) * MMU_C_TBL_SIZE * KERN_C_TABLES;
|
size = sizeof(mmu_short_pte_t) * MMU_C_TBL_SIZE * KERN_C_TABLES;
|
||||||
kernCbase = pmap_bootstrap_alloc(size);
|
kernCbase = pmap_bootstrap_alloc(size);
|
||||||
bzero(kernCbase, size);
|
memset(kernCbase, 0, size);
|
||||||
/*
|
/*
|
||||||
* Note: In order for the PV system to work correctly, the kernel
|
* Note: In order for the PV system to work correctly, the kernel
|
||||||
* and user-level C tables must be allocated contiguously.
|
* and user-level C tables must be allocated contiguously.
|
||||||
|
@ -1095,7 +1095,7 @@ pmap_init_a_tables()
|
||||||
* or kernel, mapping. This ensures that every process has
|
* or kernel, mapping. This ensures that every process has
|
||||||
* the kernel mapped in the top part of its address space.
|
* 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));
|
sizeof(mmu_long_dte_t));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -2492,7 +2492,7 @@ void
|
||||||
pmap_pinit(pmap)
|
pmap_pinit(pmap)
|
||||||
pmap_t pmap;
|
pmap_t pmap;
|
||||||
{
|
{
|
||||||
bzero(pmap, sizeof(struct pmap));
|
memset(pmap, 0, sizeof(struct pmap));
|
||||||
pmap->pm_a_tmgr = NULL;
|
pmap->pm_a_tmgr = NULL;
|
||||||
pmap->pm_a_phys = kernAphys;
|
pmap->pm_a_phys = kernAphys;
|
||||||
pmap->pm_refcount = 1;
|
pmap->pm_refcount = 1;
|
||||||
|
|
Loading…
Reference in New Issue