From 7027d87a18453cce6283e192649eedb02d2973df Mon Sep 17 00:00:00 2001 From: thorpej Date: Tue, 24 Feb 1998 07:42:05 +0000 Subject: [PATCH] Duh! Use uvm_km_valloc_wait(), NOT uvm_km_zalloc() to allocate user page tables. (Thanks for pointing that out, Chuck!) --- sys/arch/hp300/hp300/pmap.c | 4 ++-- sys/arch/mvme68k/mvme68k/pmap.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arch/hp300/hp300/pmap.c b/sys/arch/hp300/hp300/pmap.c index 27b6a139657c..14f57233e86f 100644 --- a/sys/arch/hp300/hp300/pmap.c +++ b/sys/arch/hp300/hp300/pmap.c @@ -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); diff --git a/sys/arch/mvme68k/mvme68k/pmap.c b/sys/arch/mvme68k/mvme68k/pmap.c index 34f1f3a155b4..6222b7ef43e2 100644 --- a/sys/arch/mvme68k/mvme68k/pmap.c +++ b/sys/arch/mvme68k/mvme68k/pmap.c @@ -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);