bzero -> memset

This commit is contained in:
tsutsui 2005-01-22 07:44:33 +00:00
parent 6f188aed1d
commit 66f3c84b7a
3 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.84 2005/01/22 07:35:33 tsutsui Exp $ */
/* $NetBSD: machdep.c,v 1.85 2005/01/22 07:44:33 tsutsui Exp $ */
/* $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $ */
/*
@ -78,7 +78,7 @@
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.84 2005/01/22 07:35:33 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.85 2005/01/22 07:44:33 tsutsui Exp $");
#include "fs_mfs.h"
#include "opt_ddb.h"
@ -243,7 +243,7 @@ mach_init(int argc, char *argv[], char *envv[])
/* clear the BSS segment in kernel code */
kernend = (caddr_t)mips_round_page(end);
bzero(edata, kernend - edata);
memset(edata, 0, kernend - edata);
environment = &argv[1];

View File

@ -1,4 +1,4 @@
/* $NetBSD: btl.c,v 1.16 2005/01/22 07:35:34 tsutsui Exp $ */
/* $NetBSD: btl.c,v 1.17 2005/01/22 07:44:33 tsutsui Exp $ */
/* NetBSD: bt.c,v 1.10 1996/05/12 23:51:54 mycroft Exp */
#undef BTDIAG
@ -51,7 +51,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: btl.c,v 1.16 2005/01/22 07:35:34 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: btl.c,v 1.17 2005/01/22 07:44:33 tsutsui Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -604,7 +604,7 @@ bt_init_ccb(struct bt_softc *sc, struct bt_ccb *ccb)
{
int hashnum;
bzero(ccb, sizeof(struct bt_ccb));
memset(ccb, 0, sizeof(struct bt_ccb));
/*
* put in the phystokv hash table
* Never gets taken out.
@ -946,7 +946,7 @@ bt_find(struct isa_attach_args *ia, struct bt_softc *sc0
* Check that we actually know how to use this board.
*/
delay(1000);
bzero(&inquire, sizeof inquire);
memset(&inquire, 0, sizeof inquire);
inquire.cmd.opcode = BT_INQUIRE_EXTENDED;
inquire.cmd.len = sizeof(inquire.reply);
i = bt_cmd(iobase, sc, sizeof(inquire.cmd), (u_char *)&inquire.cmd,

View File

@ -1,4 +1,4 @@
/* $NetBSD: jazzdmatlb.c,v 1.11 2005/01/22 07:35:34 tsutsui Exp $ */
/* $NetBSD: jazzdmatlb.c,v 1.12 2005/01/22 07:44:33 tsutsui Exp $ */
/* $OpenBSD: dma.c,v 1.5 1998/03/01 16:49:57 niklas Exp $ */
/*-
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: jazzdmatlb.c,v 1.11 2005/01/22 07:35:34 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: jazzdmatlb.c,v 1.12 2005/01/22 07:44:33 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -83,7 +83,7 @@ jazz_dmatlb_init(bus_space_tag_t iot, bus_addr_t ioaddr)
dma_tlb = (jazz_dma_pte_t *)PICA_TL_BASE;
mips_dcache_wbinv_all();/* Make sure no map entries are cached */
bzero((char *)dma_tlb, JAZZ_DMATLB_SIZE);
memset((char *)dma_tlb, 0, JAZZ_DMATLB_SIZE);
dmatlbmap = extent_create("dmatlb", 0, NDMATLB, M_DEVBUF, NULL, 0,
EX_NOWAIT);