diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-11-13 00:47:45 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-11-13 00:47:45 +0000 |
commit | 390a7210a0fbf82995e43dd58d300c6bc4b35d74 (patch) | |
tree | 68f1b0f2636ec9fb0bd58b23eef64554e41f1c9f | |
parent | 975def07629e6482ebb9447b29850466d752bf93 (diff) |
bzero -> memset
-rw-r--r-- | sys/uvm/uvm_addr.c | 4 | ||||
-rw-r--r-- | sys/uvm/uvm_km.c | 4 | ||||
-rw-r--r-- | sys/uvm/uvm_map.c | 4 | ||||
-rw-r--r-- | sys/uvm/uvm_pmemrange.c | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/uvm/uvm_addr.c b/sys/uvm/uvm_addr.c index e77020d3a75..7af4006fa00 100644 --- a/sys/uvm/uvm_addr.c +++ b/sys/uvm/uvm_addr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_addr.c,v 1.8 2014/06/10 20:08:48 kettenis Exp $ */ +/* $OpenBSD: uvm_addr.c,v 1.9 2014/11/13 00:47:44 tedu Exp $ */ /* * Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl> @@ -1369,7 +1369,7 @@ uaddr_pivot_create(vaddr_t minaddr, vaddr_t maxaddr) uaddr->up_uaddr.uaddr_maxaddr = maxaddr; uaddr->up_uaddr.uaddr_functions = &uaddr_pivot_functions; RB_INIT(&uaddr->up_free); - bzero(uaddr->up_pivots, sizeof(uaddr->up_pivots)); + memset(uaddr->up_pivots, 0, sizeof(uaddr->up_pivots)); return &uaddr->up_uaddr; } diff --git a/sys/uvm/uvm_km.c b/sys/uvm/uvm_km.c index 7413fcb813c..aa34283e9fd 100644 --- a/sys/uvm/uvm_km.c +++ b/sys/uvm/uvm_km.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_km.c,v 1.115 2014/09/14 14:17:27 jsg Exp $ */ +/* $OpenBSD: uvm_km.c,v 1.116 2014/11/13 00:47:44 tedu Exp $ */ /* $NetBSD: uvm_km.c,v 1.42 2001/01/14 02:10:01 thorpej Exp $ */ /* @@ -724,7 +724,7 @@ uvm_km_thread(void *arg) flags = UVM_MAPFLAG(UVM_PROT_RW, UVM_PROT_RW, UVM_INH_NONE, UVM_ADV_RANDOM, fp != NULL ? UVM_KMF_TRYLOCK : 0); - bzero(pg, sizeof(pg)); + memset(pg, 0, sizeof(pg)); for (i = 0; i < nitems(pg); i++) { pg[i] = vm_map_min(kernel_map); if (uvm_map(kernel_map, &pg[i], PAGE_SIZE, diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c index cbc3058cdc5..1437471d631 100644 --- a/sys/uvm/uvm_map.c +++ b/sys/uvm/uvm_map.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_map.c,v 1.176 2014/10/03 17:41:00 kettenis Exp $ */ +/* $OpenBSD: uvm_map.c,v 1.177 2014/11/13 00:47:44 tedu Exp $ */ /* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */ /* @@ -3087,7 +3087,7 @@ uvmspace_exec(struct proc *p, vaddr_t start, vaddr_t end) KDASSERT(RB_EMPTY(&map->addr)); /* Nuke statistics and boundaries. */ - bzero(&ovm->vm_startcopy, + memset(&ovm->vm_startcopy, 0, (caddr_t) (ovm + 1) - (caddr_t) &ovm->vm_startcopy); diff --git a/sys/uvm/uvm_pmemrange.c b/sys/uvm/uvm_pmemrange.c index 02f033c98db..6bf6a756c7b 100644 --- a/sys/uvm/uvm_pmemrange.c +++ b/sys/uvm/uvm_pmemrange.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_pmemrange.c,v 1.43 2014/10/03 22:25:58 guenther Exp $ */ +/* $OpenBSD: uvm_pmemrange.c,v 1.44 2014/11/13 00:47:44 tedu Exp $ */ /* * Copyright (c) 2009, 2010 Ariane van der Steldt <ariane@stack.nl> @@ -1475,7 +1475,7 @@ uvm_pmr_allocpmr(void) M_VMMAP, M_NOWAIT); } KASSERT(nw != NULL); - bzero(nw, sizeof(struct uvm_pmemrange)); + memset(nw, 0, sizeof(struct uvm_pmemrange)); RB_INIT(&nw->addr); for (i = 0; i < UVM_PMR_MEMTYPE_MAX; i++) { RB_INIT(&nw->size[i]); |