summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_anon.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-09-07 20:15:30 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-09-07 20:15:30 +0000
commitd870eef11536ff9b8b1e057811aefade9c111bee (patch)
tree184f20f788a988ad8e41d7381ce037ff8277e6dd /sys/uvm/uvm_anon.c
parent653e038f4e286aadac796ed6c0cce53819bcb399 (diff)
Convert bzero to memset(X, 0..) and bcopy to memcpy.
This is to match (make diffs smaller) the code in NetBSD. new gcc inlines those functions, so this could also be a performance win.
Diffstat (limited to 'sys/uvm/uvm_anon.c')
-rw-r--r--sys/uvm/uvm_anon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_anon.c b/sys/uvm/uvm_anon.c
index 09551c6ce66..608d6636d9e 100644
--- a/sys/uvm/uvm_anon.c
+++ b/sys/uvm/uvm_anon.c
@@ -69,7 +69,7 @@ uvm_anon_init()
panic("uvm_anon_init");
}
- bzero(anon, sizeof(*anon) * nanon);
+ memset(anon, 0, sizeof(*anon) * nanon);
uvm.afree = NULL;
uvmexp.nanon = uvmexp.nfreeanon = nanon;
for (lcv = 0 ; lcv < nanon ; lcv++) {
@@ -100,7 +100,7 @@ uvm_anon_add(pages)
}
simple_lock(&uvm.afreelock);
- bzero(anon, sizeof(*anon) * pages);
+ memset(anon, 0, sizeof(*anon) * pages);
uvmexp.nanon += pages;
uvmexp.nfreeanon += pages;
for (lcv = 0; lcv < pages; lcv++) {