diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1997-02-10 11:53:12 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1997-02-10 11:53:12 +0000 |
commit | 24deda3efa97695ea951a9dd0b73b9dc964e078d (patch) | |
tree | 1399b630912ce4a172947e4db35a177b1777db05 | |
parent | 827295bbb96f931d6a7fbbfb8655e8c3e07a85d9 (diff) |
zeropage -> devzeropage
-rw-r--r-- | sys/arch/sun3/sun3/mem.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/sun3/sun3/mem.c b/sys/arch/sun3/sun3/mem.c index 83f1dedcf7b..a8924da66b1 100644 --- a/sys/arch/sun3/sun3/mem.c +++ b/sys/arch/sun3/sun3/mem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mem.c,v 1.5 1997/01/16 04:04:30 kstailey Exp $ */ +/* $OpenBSD: mem.c,v 1.6 1997/02/10 11:53:11 downsj Exp $ */ /* $NetBSD: mem.c,v 1.19 1995/08/08 21:09:01 gwr Exp $ */ /* @@ -68,7 +68,7 @@ extern int ledrw __P((struct uio *)); -caddr_t zeropage; +static caddr_t devzeropage; /*ARGSUSED*/ int @@ -210,13 +210,13 @@ mmrw(dev, uio, flags) * On the first call, allocate and zero a page * of memory for use with /dev/zero. */ - if (zeropage == NULL) { - zeropage = (caddr_t) + if (devzeropage == NULL) { + devzeropage = (caddr_t) malloc(CLBYTES, M_TEMP, M_WAITOK); - bzero(zeropage, CLBYTES); + bzero(devzeropage, CLBYTES); } c = min(iov->iov_len, CLBYTES); - error = uiomove(zeropage, c, uio); + error = uiomove(devzeropage, c, uio); continue; /* minor device 13 (/dev/leds) accesses the blinkenlights */ |