Fixed botched previous change - use 'pageno' not initialized to NULL 'kva'.

Submitted by:	Lars Fredriksen
This commit is contained in:
David Greenman 1995-02-16 00:41:16 +00:00
parent 9426bb7c1d
commit eb2463e1fc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6474

View File

@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * 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> #include <sys/param.h>
@ -156,11 +156,11 @@ pwrite (struct proc *procp, unsigned int addr, unsigned int datum) {
* Fault the page in... * Fault the page in...
*/ */
vm_map_pageable(map, (vm_offset_t) vtopte(kva), vm_map_pageable(map, (vm_offset_t) vtopte(pageno),
(vm_offset_t) vtopte(kva) + PAGE_SIZE, FALSE); (vm_offset_t) vtopte(pageno) + PAGE_SIZE, FALSE);
rv = vm_fault(map, pageno, VM_PROT_WRITE|VM_PROT_READ, FALSE); rv = vm_fault(map, pageno, VM_PROT_WRITE|VM_PROT_READ, FALSE);
vm_map_pageable (map, (vm_offset_t) vtopte(kva), vm_map_pageable (map, (vm_offset_t) vtopte(pageno),
(vm_offset_t) vtopte(kva) + PAGE_SIZE, TRUE); (vm_offset_t) vtopte(pageno) + PAGE_SIZE, TRUE);
if (rv != KERN_SUCCESS) if (rv != KERN_SUCCESS)
return EFAULT; return EFAULT;