zeropage -> devzeropage, and make it static.

This commit is contained in:
thorpej 1997-02-02 07:59:41 +00:00
parent 4b525c0004
commit c51511c5b5
1 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mem.c,v 1.13 1995/04/10 13:10:51 mycroft Exp $ */
/* $NetBSD: mem.c,v 1.14 1997/02/02 07:59:41 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -56,7 +56,7 @@
#include <vm/vm.h>
extern u_int lowram;
caddr_t zeropage;
static caddr_t devzeropage;
/*ARGSUSED*/
int
@ -162,18 +162,18 @@ mmrw(dev, uio, flags)
* XXX on the hp300 we already know where there
* is a global zeroed page, the null segment table.
*/
if (zeropage == NULL) {
if (devzeropage == NULL) {
#if CLBYTES == NBPG
extern caddr_t Segtabzero;
zeropage = Segtabzero;
devzeropage = Segtabzero;
#else
zeropage = (caddr_t)
devzeropage = (caddr_t)
malloc(CLBYTES, M_TEMP, M_WAITOK);
bzero(zeropage, CLBYTES);
bzero(devzeropage, CLBYTES);
#endif
}
c = min(iov->iov_len, CLBYTES);
error = uiomove(zeropage, c, uio);
error = uiomove(devzeropage, c, uio);
continue;
default: