Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hpcarm bzero->memset, bcopy->memcpy



details:   https://anonhg.NetBSD.org/src/rev/95042d0ab991
branches:  trunk
changeset: 512167:95042d0ab991
user:      ichiro <ichiro%NetBSD.org@localhost>
date:      Sat Jul 07 06:29:13 2001 +0000

description:
bzero->memset, bcopy->memcpy

diffstat:

 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(-)

diffs (81 lines):

diff -r bab4b7732487 -r 95042d0ab991 sys/arch/hpcarm/dev/sed_saip.c
--- a/sys/arch/hpcarm/dev/sed_saip.c    Sat Jul 07 06:24:00 2001 +0000
+++ b/sys/arch/hpcarm/dev/sed_saip.c    Sat Jul 07 06:29:13 2001 +0000
@@ -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 @@
        }
 
        /* 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 -r bab4b7732487 -r 95042d0ab991 sys/arch/hpcarm/hpcarm/mem.c
--- a/sys/arch/hpcarm/hpcarm/mem.c      Sat Jul 07 06:24:00 2001 +0000
+++ b/sys/arch/hpcarm/hpcarm/mem.c      Sat Jul 07 06:29:13 2001 +0000
@@ -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 @@
                        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 -r bab4b7732487 -r 95042d0ab991 sys/arch/hpcarm/hpcarm/process_machdep.c
--- a/sys/arch/hpcarm/hpcarm/process_machdep.c  Sat Jul 07 06:24:00 2001 +0000
+++ b/sys/arch/hpcarm/hpcarm/process_machdep.c  Sat Jul 07 06:29:13 2001 +0000
@@ -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 @@
 {
        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 @@
 {
        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 -r bab4b7732487 -r 95042d0ab991 sys/arch/hpcarm/sa11x0/sa11x0_lcd.c
--- a/sys/arch/hpcarm/sa11x0/sa11x0_lcd.c       Sat Jul 07 06:24:00 2001 +0000
+++ b/sys/arch/hpcarm/sa11x0/sa11x0_lcd.c       Sat Jul 07 06:29:13 2001 +0000
@@ -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 @@
        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;



Home | Main Index | Thread Index | Old Index