Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arc bzero -> memset
details: https://anonhg.NetBSD.org/src/rev/99be9ee3ea6e
branches: trunk
changeset: 573214:99be9ee3ea6e
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Jan 22 07:44:33 2005 +0000
description:
bzero -> memset
diffstat:
sys/arch/arc/arc/machdep.c | 6 +++---
sys/arch/arc/dti/btl.c | 8 ++++----
sys/arch/arc/jazz/jazzdmatlb.c | 6 +++---
3 files changed, 10 insertions(+), 10 deletions(-)
diffs (90 lines):
diff -r 404f9718d83d -r 99be9ee3ea6e sys/arch/arc/arc/machdep.c
--- a/sys/arch/arc/arc/machdep.c Sat Jan 22 07:44:08 2005 +0000
+++ b/sys/arch/arc/arc/machdep.c Sat Jan 22 07:44:33 2005 +0000
@@ -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 @@
/* 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];
diff -r 404f9718d83d -r 99be9ee3ea6e sys/arch/arc/dti/btl.c
--- a/sys/arch/arc/dti/btl.c Sat Jan 22 07:44:08 2005 +0000
+++ b/sys/arch/arc/dti/btl.c Sat Jan 22 07:44:33 2005 +0000
@@ -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 @@
{
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 @@
* 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,
diff -r 404f9718d83d -r 99be9ee3ea6e sys/arch/arc/jazz/jazzdmatlb.c
--- a/sys/arch/arc/jazz/jazzdmatlb.c Sat Jan 22 07:44:08 2005 +0000
+++ b/sys/arch/arc/jazz/jazzdmatlb.c Sat Jan 22 07:44:33 2005 +0000
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index