From 2d8f1062043888614fe3883f04cc5d1a6eae67aa Mon Sep 17 00:00:00 2001 From: David Greenman Date: Tue, 18 Oct 1994 04:26:53 +0000 Subject: [PATCH] Allow upages to be paged in/accessed. Submitted by: John Dyson --- sys/fs/procfs/procfs_mem.c | 4 ++-- sys/miscfs/procfs/procfs_mem.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/fs/procfs/procfs_mem.c b/sys/fs/procfs/procfs_mem.c index e6fa093dcab2..65cde1f16623 100644 --- a/sys/fs/procfs/procfs_mem.c +++ b/sys/fs/procfs/procfs_mem.c @@ -37,7 +37,7 @@ * * @(#)procfs_mem.c 8.4 (Berkeley) 1/21/94 * - * $Id: procfs_mem.c,v 1.2 1994/08/02 07:45:13 davidg Exp $ + * $Id: procfs_mem.c,v 1.3 1994/09/15 19:47:47 bde Exp $ */ /* @@ -86,7 +86,7 @@ procfs_rwmem(p, uio) int fix_prot; uva = (vm_offset_t) uio->uio_offset; - if (uva > VM_MAXUSER_ADDRESS) { + if (uva >= VM_MAXUSER_ADDRESS + UPAGES * PAGE_SIZE) { error = 0; break; } diff --git a/sys/miscfs/procfs/procfs_mem.c b/sys/miscfs/procfs/procfs_mem.c index e6fa093dcab2..65cde1f16623 100644 --- a/sys/miscfs/procfs/procfs_mem.c +++ b/sys/miscfs/procfs/procfs_mem.c @@ -37,7 +37,7 @@ * * @(#)procfs_mem.c 8.4 (Berkeley) 1/21/94 * - * $Id: procfs_mem.c,v 1.2 1994/08/02 07:45:13 davidg Exp $ + * $Id: procfs_mem.c,v 1.3 1994/09/15 19:47:47 bde Exp $ */ /* @@ -86,7 +86,7 @@ procfs_rwmem(p, uio) int fix_prot; uva = (vm_offset_t) uio->uio_offset; - if (uva > VM_MAXUSER_ADDRESS) { + if (uva >= VM_MAXUSER_ADDRESS + UPAGES * PAGE_SIZE) { error = 0; break; }