Duh! Use uvm_km_valloc_wait(), NOT uvm_km_zalloc() to allocate user page
tables. (Thanks for pointing that out, Chuck!)
This commit is contained in:
parent
58509e699f
commit
7027d87a18
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.42 1998/02/16 21:01:39 thorpej Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.43 1998/02/24 07:42:05 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -1367,7 +1367,7 @@ pmap_enter(pmap, va, pa, prot, wired)
|
||||
if (pmap->pm_ptab == NULL)
|
||||
#if defined(UVM)
|
||||
pmap->pm_ptab = (pt_entry_t *)
|
||||
uvm_km_zalloc(pt_map, HP_MAX_PTSIZE);
|
||||
uvm_km_valloc_wait(pt_map, HP_MAX_PTSIZE);
|
||||
#else
|
||||
pmap->pm_ptab = (pt_entry_t *)
|
||||
kmem_alloc_wait(pt_map, HP_MAX_PTSIZE);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.13 1998/02/21 19:03:26 scw Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.14 1998/02/24 07:42:06 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -1363,7 +1363,7 @@ pmap_enter(pmap, va, pa, prot, wired)
|
||||
if (pmap->pm_ptab == NULL)
|
||||
#if defined(UVM)
|
||||
pmap->pm_ptab = (pt_entry_t *)
|
||||
uvm_km_zalloc(pt_map, HP_MAX_PTSIZE);
|
||||
uvm_km_valloc_wait(pt_map, HP_MAX_PTSIZE);
|
||||
#else
|
||||
pmap->pm_ptab = (pt_entry_t *)
|
||||
kmem_alloc_wait(pt_map, HP_MAX_PTSIZE);
|
||||
|
Loading…
Reference in New Issue
Block a user