Use kmem_alloc_nofault() rather than kmem_alloc_pageable() to allocate

kernel virtual address space for UPAGES.
This commit is contained in:
Dmitrij Tejblum 1999-06-08 17:14:22 +00:00
parent a839bdc8af
commit 2105375397
3 changed files with 6 additions and 6 deletions

View File

@ -43,7 +43,7 @@
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* from: i386 Id: pmap.c,v 1.193 1998/04/19 15:22:48 bde Exp
* with some ideas from NetBSD's alpha pmap
* $Id: pmap.c,v 1.23 1999/05/11 18:59:56 dt Exp $
* $Id: pmap.c,v 1.24 1999/05/28 05:38:47 alc Exp $
*/
/*
@ -970,7 +970,7 @@ pmap_new_proc(struct proc *p)
/* get a kernel virtual address for the UPAGES for this proc */
if ((up = p->p_addr) == NULL) {
up = (struct user *) kmem_alloc_pageable(kernel_map,
up = (struct user *) kmem_alloc_nofault(kernel_map,
UPAGES * PAGE_SIZE);
#if !defined(MAX_PERF)
if (up == NULL)

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.237 1999/06/01 18:19:44 jlemon Exp $
* $Id: pmap.c,v 1.238 1999/06/05 16:16:37 luoqi Exp $
*/
/*
@ -908,7 +908,7 @@ pmap_new_proc(p)
/* get a kernel virtual address for the UPAGES for this proc */
if ((up = p->p_addr) == NULL) {
up = (struct user *) kmem_alloc_pageable(kernel_map,
up = (struct user *) kmem_alloc_nofault(kernel_map,
UPAGES * PAGE_SIZE);
#if !defined(MAX_PERF)
if (up == NULL)

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.237 1999/06/01 18:19:44 jlemon Exp $
* $Id: pmap.c,v 1.238 1999/06/05 16:16:37 luoqi Exp $
*/
/*
@ -908,7 +908,7 @@ pmap_new_proc(p)
/* get a kernel virtual address for the UPAGES for this proc */
if ((up = p->p_addr) == NULL) {
up = (struct user *) kmem_alloc_pageable(kernel_map,
up = (struct user *) kmem_alloc_nofault(kernel_map,
UPAGES * PAGE_SIZE);
#if !defined(MAX_PERF)
if (up == NULL)