From d870eef11536ff9b8b1e057811aefade9c111bee Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Thu, 7 Sep 2000 20:15:30 +0000 Subject: 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. --- sys/uvm/uvm_vnode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/uvm/uvm_vnode.c') diff --git a/sys/uvm/uvm_vnode.c b/sys/uvm/uvm_vnode.c index 6dc5f6d8b16..dcee6daf225 100644 --- a/sys/uvm/uvm_vnode.c +++ b/sys/uvm/uvm_vnode.c @@ -1734,7 +1734,7 @@ uvn_io(uvn, pps, npages, flags, rw) if (wanted && got == 0) { result = EIO; /* XXX: error? */ } else if (got < PAGE_SIZE * npages && rw == UIO_READ) { - bzero((void *) (kva + got), + memset((void *) (kva + got), 0, (npages << PAGE_SHIFT) - got); } } -- cgit v1.2.3