From cd3fb67f14b6c4af2e9423623b2d0de49bd18d25 Mon Sep 17 00:00:00 2001 From: ichiro Date: Sat, 7 Jul 2001 06:29:13 +0000 Subject: [PATCH] bzero->memset, bcopy->memcpy --- sys/arch/hpcarm/dev/sed_saip.c | 4 ++-- sys/arch/hpcarm/hpcarm/mem.c | 4 ++-- sys/arch/hpcarm/hpcarm/process_machdep.c | 6 +++--- sys/arch/hpcarm/sa11x0/sa11x0_lcd.c | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sys/arch/hpcarm/dev/sed_saip.c b/sys/arch/hpcarm/dev/sed_saip.c index 7c1d025cb1b1..7a225bd5cb7c 100644 --- a/sys/arch/hpcarm/dev/sed_saip.c +++ b/sys/arch/hpcarm/dev/sed_saip.c @@ -1,4 +1,4 @@ -/* $NetBSD: sed_saip.c,v 1.5 2001/06/29 17:22:50 toshii Exp $ */ +/* $NetBSD: sed_saip.c,v 1.6 2001/07/07 06:29:13 ichiro Exp $ */ /*- * Copyright (c) 1999-2001 @@ -205,7 +205,7 @@ sed1356_init(struct hpcfb_fbconf *fb) } /* zero fill */ - bzero(fb, sizeof(*fb)); + memset(fb, 0, sizeof(*fb)); fb->hf_conf_index = 0; /* configuration index */ fb->hf_nconfs = 1; /* how many configurations */ diff --git a/sys/arch/hpcarm/hpcarm/mem.c b/sys/arch/hpcarm/hpcarm/mem.c index 309df50e2360..26eec7a23a5d 100644 --- a/sys/arch/hpcarm/hpcarm/mem.c +++ b/sys/arch/hpcarm/hpcarm/mem.c @@ -1,4 +1,4 @@ -/* $NetBSD: mem.c,v 1.3 2001/06/29 02:40:28 toshii Exp $ */ +/* $NetBSD: mem.c,v 1.4 2001/07/07 06:29:13 ichiro Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -158,7 +158,7 @@ mmrw(dev, uio, flags) if (zeropage == NULL) { zeropage = (caddr_t) malloc(NBPG, M_TEMP, M_WAITOK); - bzero(zeropage, NBPG); + memset(zeropage, 0, NBPG); } c = min(iov->iov_len, NBPG); error = uiomove(zeropage, c, uio); diff --git a/sys/arch/hpcarm/hpcarm/process_machdep.c b/sys/arch/hpcarm/hpcarm/process_machdep.c index 4d6bd5edc2ed..596e51d8312b 100644 --- a/sys/arch/hpcarm/hpcarm/process_machdep.c +++ b/sys/arch/hpcarm/hpcarm/process_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: process_machdep.c,v 1.2 2001/02/28 18:15:44 bjh21 Exp $ */ +/* $NetBSD: process_machdep.c,v 1.3 2001/07/07 06:29:13 ichiro Exp $ */ /* * Copyright (c) 1995 Frank Lancaster. All rights reserved. @@ -95,7 +95,7 @@ process_read_regs(p, regs) { struct trapframe *tf = process_frame(p); - bcopy((caddr_t)&tf->tf_r0, (caddr_t)regs->r, sizeof(regs->r)); + memcpy((caddr_t)regs->r, (caddr_t)&tf->tf_r0, sizeof(regs->r)); regs->r_sp = tf->tf_usr_sp; regs->r_lr = tf->tf_usr_lr; regs->r_pc = tf->tf_pc; @@ -126,7 +126,7 @@ process_write_regs(p, regs) { struct trapframe *tf = process_frame(p); - bcopy((caddr_t)regs->r, (caddr_t)&tf->tf_r0, sizeof(regs->r)); + memcpy((caddr_t)&tf->tf_r0, (caddr_t)regs->r, sizeof(regs->r)); tf->tf_usr_sp = regs->r_sp; tf->tf_usr_lr = regs->r_lr; tf->tf_pc = regs->r_pc; diff --git a/sys/arch/hpcarm/sa11x0/sa11x0_lcd.c b/sys/arch/hpcarm/sa11x0/sa11x0_lcd.c index a7006271e5d1..93110e1b9139 100644 --- a/sys/arch/hpcarm/sa11x0/sa11x0_lcd.c +++ b/sys/arch/hpcarm/sa11x0/sa11x0_lcd.c @@ -1,4 +1,4 @@ -/* $NetBSD: sa11x0_lcd.c,v 1.5 2001/07/02 13:52:30 ichiro Exp $ */ +/* $NetBSD: sa11x0_lcd.c,v 1.6 2001/07/07 06:29:13 ichiro Exp $ */ #define SALCD_DEBUG /* @@ -216,7 +216,7 @@ salcd_fbinit(fb) struct hpcfb_fbconf *fb; { /* Initialize fb */ - bzero(fb, sizeof(*fb)); + memset(fb, 0, sizeof(*fb)); fb->hf_conf_index = 0; /* configuration index */ fb->hf_nconfs = 1;