Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/news68k bzero() -> memset()



details:   https://anonhg.NetBSD.org/src/rev/bab4b7732487
branches:  trunk
changeset: 512166:bab4b7732487
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Jul 07 06:24:00 2001 +0000

description:
bzero() -> memset()

diffstat:

 sys/arch/news68k/dev/hb.c             |  4 ++--
 sys/arch/news68k/news68k/isr.c        |  5 +++--
 sys/arch/news68k/news68k/machdep.c    |  4 ++--
 sys/arch/news68k/news68k/mem.c        |  4 ++--
 sys/arch/news68k/news68k/pmap.c       |  8 ++++----
 sys/arch/news68k/news68k/vm_machdep.c |  4 ++--
 6 files changed, 15 insertions(+), 14 deletions(-)

diffs (127 lines):

diff -r 426d52c3a993 -r bab4b7732487 sys/arch/news68k/dev/hb.c
--- a/sys/arch/news68k/dev/hb.c Sat Jul 07 05:58:12 2001 +0000
+++ b/sys/arch/news68k/dev/hb.c Sat Jul 07 06:24:00 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hb.c,v 1.4 2000/10/04 16:26:43 tsutsui Exp $   */
+/*     $NetBSD: hb.c,v 1.5 2001/07/07 06:24:00 tsutsui Exp $   */
 
 /*-
  * Copyright (C) 1999 Izumi Tsutsui.  All rights reserved.
@@ -74,7 +74,7 @@
        struct hb_attach_args ha;
 
        printf("\n");
-       bzero(&ha, sizeof(ha));
+       memset(&ha, 0, sizeof(ha));
 
        config_search(hb_search, self, &ha);
 }
diff -r 426d52c3a993 -r bab4b7732487 sys/arch/news68k/news68k/isr.c
--- a/sys/arch/news68k/news68k/isr.c    Sat Jul 07 05:58:12 2001 +0000
+++ b/sys/arch/news68k/news68k/isr.c    Sat Jul 07 06:24:00 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: isr.c,v 1.6 2000/11/09 13:32:06 tsutsui Exp $  */
+/*     $NetBSD: isr.c,v 1.7 2001/07/07 06:24:00 tsutsui Exp $  */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -195,7 +195,8 @@
                panic("isrunlink_vectored: not vectored interrupt");
 
        vectab[vec] = badtrap;
-       bzero(&isr_vectored[vec - ISRVECTORED], sizeof(struct isr_vectored));
+       memset(&isr_vectored[vec - ISRVECTORED], 0,
+           sizeof(struct isr_vectored));
 }
 
 /*
diff -r 426d52c3a993 -r bab4b7732487 sys/arch/news68k/news68k/machdep.c
--- a/sys/arch/news68k/news68k/machdep.c        Sat Jul 07 05:58:12 2001 +0000
+++ b/sys/arch/news68k/news68k/machdep.c        Sat Jul 07 06:24:00 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.22 2001/07/07 05:09:44 tsutsui Exp $     */
+/*     $NetBSD: machdep.c,v 1.23 2001/07/07 06:24:00 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -508,7 +508,7 @@
        cpu_kcore_hdr_t *h = &cpu_kcore_hdr;
        struct m68k_kcore_hdr *m = &h->un._m68k;
 
-       bzero(&cpu_kcore_hdr, sizeof(cpu_kcore_hdr));
+       memset(&cpu_kcore_hdr, 0, sizeof(cpu_kcore_hdr));
 
        /*
         * Initialize the `dispatcher' portion of the header.
diff -r 426d52c3a993 -r bab4b7732487 sys/arch/news68k/news68k/mem.c
--- a/sys/arch/news68k/news68k/mem.c    Sat Jul 07 05:58:12 2001 +0000
+++ b/sys/arch/news68k/news68k/mem.c    Sat Jul 07 06:24:00 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mem.c,v 1.6 2001/04/24 04:31:04 thorpej Exp $  */
+/*     $NetBSD: mem.c,v 1.7 2001/07/07 06:24:00 tsutsui Exp $  */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -183,7 +183,7 @@
                        if (devzeropage == NULL) {
                                devzeropage = (caddr_t)
                                    malloc(NBPG, M_TEMP, M_WAITOK);
-                               bzero(devzeropage, NBPG);
+                               memset(devzeropage, 0, NBPG);
                        }
                        c = min(iov->iov_len, NBPG);
                        error = uiomove(devzeropage, c, uio);
diff -r 426d52c3a993 -r bab4b7732487 sys/arch/news68k/news68k/pmap.c
--- a/sys/arch/news68k/news68k/pmap.c   Sat Jul 07 05:58:12 2001 +0000
+++ b/sys/arch/news68k/news68k/pmap.c   Sat Jul 07 06:24:00 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.16 2001/06/02 18:09:17 chs Exp $    */
+/*     $NetBSD: pmap.c,v 1.17 2001/07/07 06:24:01 tsutsui Exp $        */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -725,7 +725,7 @@
            ("pmap_create\n"));
 
        pmap = pool_get(&pmap_pmap_pool, PR_WAITOK);
-       bzero(pmap, sizeof(*pmap));
+       memset(pmap, 0, sizeof(*pmap));
        pmap_pinit(pmap);
        return (pmap);
 }
@@ -2542,7 +2542,7 @@
                                panic("enter: out of address space"); /* XXX */
                        pmap->pm_stfree &= ~l2tobm(ix);
                        addr = (caddr_t)&pmap->pm_stab[ix*SG4_LEV2SIZE];
-                       bzero(addr, SG4_LEV2SIZE*sizeof(st_entry_t));
+                       memset(addr, 0, SG4_LEV2SIZE*sizeof(st_entry_t));
                        addr = (caddr_t)&pmap->pm_stpa[ix*SG4_LEV2SIZE];
                        *ste = (u_int)addr | SG_RW | SG_U | SG_V;
 
@@ -2590,7 +2590,7 @@
                kpt->kpt_next = kpt_used_list;
                kpt_used_list = kpt;
                ptpa = kpt->kpt_pa;
-               bzero((caddr_t)kpt->kpt_va, NBPG);
+               memset((caddr_t)kpt->kpt_va, 0, NBPG);
                pmap_enter(pmap, va, ptpa, VM_PROT_DEFAULT,
                    VM_PROT_DEFAULT|PMAP_WIRED);
                pmap_update();
diff -r 426d52c3a993 -r bab4b7732487 sys/arch/news68k/news68k/vm_machdep.c
--- a/sys/arch/news68k/news68k/vm_machdep.c     Sat Jul 07 05:58:12 2001 +0000
+++ b/sys/arch/news68k/news68k/vm_machdep.c     Sat Jul 07 06:24:00 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.8 2001/04/24 04:31:05 thorpej Exp $   */
+/*     $NetBSD: vm_machdep.c,v 1.9 2001/07/07 06:24:01 tsutsui Exp $   */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -175,7 +175,7 @@
                        return error;
        } else {
                /* Make sure these are clear. */
-               bzero((caddr_t)&md_core.freg, sizeof(md_core.freg));
+               memset((caddr_t)&md_core.freg, 0, sizeof(md_core.freg));
        }
 
        CORE_SETMAGIC(cseg, CORESEGMAGIC, MID_MACHINE, CORE_CPU);



Home | Main Index | Thread Index | Old Index