diff options
author | dg <dg@FreeBSD.org> | 1995-02-16 00:41:16 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-02-16 00:41:16 +0000 |
commit | ca7e5f22bd70b1995a0b15f1ebdc61c9ed67ab3c (patch) | |
tree | 63bfdaa0c5bd25e6f6ff77854db22c882e2cfb58 /sys | |
parent | b561709c877730448b035247c55c389a92374891 (diff) | |
download | FreeBSD-src-ca7e5f22bd70b1995a0b15f1ebdc61c9ed67ab3c.zip FreeBSD-src-ca7e5f22bd70b1995a0b15f1ebdc61c9ed67ab3c.tar.gz |
Fixed botched previous change - use 'pageno' not initialized to NULL 'kva'.
Submitted by: Lars Fredriksen
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/sys_process.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index e1d643b..aa550dd 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: sys_process.c,v 1.8 1995/01/14 13:19:38 bde Exp $ + * $Id: sys_process.c,v 1.9 1995/02/10 22:36:11 davidg Exp $ */ #include <sys/param.h> @@ -156,11 +156,11 @@ pwrite (struct proc *procp, unsigned int addr, unsigned int datum) { * Fault the page in... */ - vm_map_pageable(map, (vm_offset_t) vtopte(kva), - (vm_offset_t) vtopte(kva) + PAGE_SIZE, FALSE); + vm_map_pageable(map, (vm_offset_t) vtopte(pageno), + (vm_offset_t) vtopte(pageno) + PAGE_SIZE, FALSE); rv = vm_fault(map, pageno, VM_PROT_WRITE|VM_PROT_READ, FALSE); - vm_map_pageable (map, (vm_offset_t) vtopte(kva), - (vm_offset_t) vtopte(kva) + PAGE_SIZE, TRUE); + vm_map_pageable (map, (vm_offset_t) vtopte(pageno), + (vm_offset_t) vtopte(pageno) + PAGE_SIZE, TRUE); if (rv != KERN_SUCCESS) return EFAULT; |