Nuke bcopy/bzero.

This commit is contained in:
martin 2003-11-09 14:28:56 +00:00
parent b158245614
commit 76bfd5ab17
5 changed files with 20 additions and 20 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ebus.c,v 1.41 2003/08/27 15:59:54 mrg Exp $ */
/* $NetBSD: ebus.c,v 1.42 2003/11/09 14:28:56 martin Exp $ */
/*
* Copyright (c) 1999, 2000, 2001 Matthew R. Green
@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ebus.c,v 1.41 2003/08/27 15:59:54 mrg Exp $");
__KERNEL_RCSID(0, "$NetBSD: ebus.c,v 1.42 2003/11/09 14:28:56 martin Exp $");
#include "opt_ddb.h"
@ -251,7 +251,7 @@ ebus_setup_attach_args(sc, node, ea)
{
int n, rv;
bzero(ea, sizeof(struct ebus_attach_args));
memset(ea, 0, sizeof(struct ebus_attach_args));
rv = PROM_getprop(node, "name", 1, &n, &ea->ea_name);
if (rv != 0)
return (rv);
@ -401,7 +401,7 @@ ebus_alloc_bus_tag(sc, type)
if (bt == NULL)
panic("could not allocate ebus bus tag");
bzero(bt, sizeof *bt);
memset(bt, 0, sizeof *bt);
bt->cookie = sc;
bt->parent = sc->sc_memtag;
bt->type = type;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pci_machdep.c,v 1.39 2003/08/22 00:45:40 petrov Exp $ */
/* $NetBSD: pci_machdep.c,v 1.40 2003/11/09 14:28:56 martin Exp $ */
/*
* Copyright (c) 1999, 2000 Matthew R. Green
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.39 2003/08/22 00:45:40 petrov Exp $");
__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.40 2003/11/09 14:28:56 martin Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -127,7 +127,7 @@ pci_make_tag(pc, b, d, f)
int node, len;
#ifdef DEBUG
char name[80];
bzero(name, sizeof(name));
memset(name, 0, sizeof(name));
#endif
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: psycho.c,v 1.66 2003/08/27 15:59:54 mrg Exp $ */
/* $NetBSD: psycho.c,v 1.67 2003/11/09 14:28:56 martin Exp $ */
/*
* Copyright (c) 2001, 2002 Eduardo E. Horvath
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: psycho.c,v 1.66 2003/08/27 15:59:54 mrg Exp $");
__KERNEL_RCSID(0, "$NetBSD: psycho.c,v 1.67 2003/11/09 14:28:56 martin Exp $");
#include "opt_ddb.h"
@ -988,7 +988,7 @@ psycho_alloc_bus_tag(pp, type)
if (bt == NULL)
panic("could not allocate psycho bus tag");
bzero(bt, sizeof *bt);
memset(bt, 0, sizeof *bt);
bt->cookie = pp;
bt->parent = sc->sc_bustag;
bt->type = type;
@ -1010,7 +1010,7 @@ psycho_alloc_dma_tag(pp)
if (dt == NULL)
panic("could not allocate psycho DMA tag");
bzero(dt, sizeof *dt);
memset(dt, 0, sizeof *dt);
dt->_cookie = pp;
dt->_parent = pdt;
#define PCOPY(x) dt->x = pdt->x

View File

@ -1,4 +1,4 @@
/* $NetBSD: sbus.c,v 1.64 2003/10/26 19:15:00 christos Exp $ */
/* $NetBSD: sbus.c,v 1.65 2003/11/09 14:28:56 martin Exp $ */
/*
* Copyright (c) 1999-2002 Eduardo Horvath
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sbus.c,v 1.64 2003/10/26 19:15:00 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: sbus.c,v 1.65 2003/11/09 14:28:56 martin Exp $");
#include "opt_ddb.h"
@ -333,7 +333,7 @@ sbus_setup_attach_args(sc, bustag, dmatag, node, sa)
int error;
int n;
bzero(sa, sizeof(struct sbus_attach_args));
memset(sa, 0, sizeof(struct sbus_attach_args));
error = PROM_getprop(node, "name", 1, &n, &sa->sa_name);
if (error != 0)
return (error);
@ -391,7 +391,7 @@ sbus_destroy_attach_args(sa)
if (sa->sa_promvaddrs)
free((void *)sa->sa_promvaddrs, M_DEVBUF);
bzero(sa, sizeof(struct sbus_attach_args)); /*DEBUG*/
memset(sa, 0, sizeof(struct sbus_attach_args)); /*DEBUG*/
}
@ -707,7 +707,7 @@ sbus_alloc_bustag(sc)
if (sbt == NULL)
return (NULL);
bzero(sbt, sizeof *sbt);
memset(sbt, 0, sizeof *sbt);
sbt->cookie = sc;
sbt->parent = sc->sc_bustag;
sbt->type = SBUS_BUS_SPACE;

View File

@ -1,4 +1,4 @@
/* $NetBSD: zs.c,v 1.48 2003/10/31 20:06:54 petrov Exp $ */
/* $NetBSD: zs.c,v 1.49 2003/11/09 14:28:56 martin Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.48 2003/10/31 20:06:54 petrov Exp $");
__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.49 2003/11/09 14:28:56 martin Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@ -320,8 +320,8 @@ zs_attach(zsc, zsd, pri)
cs->cs_reg_csr = &zc->zc_csr;
cs->cs_reg_data = &zc->zc_data;
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);
/* XXX: Consult PROM properties for this?! */
cs->cs_defspeed = zs_get_speed(cs);