diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-09 02:50:09 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-09 02:50:09 +0000 |
commit | 7e57535bd8ca722b60f0d33f11ecdf0297f00856 (patch) | |
tree | f6b4f9d934066b3d227c770869fd0c67fd70e781 /sys/arch | |
parent | 0c95b4f4061db654d5894cf296d9d13db30d4167 (diff) |
Don't uvm_pagezero here, allocate a zeroed page instead.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/alpha/alpha/pmap.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/alpha/alpha/pmap.c b/sys/arch/alpha/alpha/pmap.c index 20063bfda21..6986d5fe846 100644 --- a/sys/arch/alpha/alpha/pmap.c +++ b/sys/arch/alpha/alpha/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.20 2001/11/09 02:47:33 art Exp $ */ +/* $OpenBSD: pmap.c,v 1.21 2001/11/09 02:50:08 art Exp $ */ /* $NetBSD: pmap.c,v 1.154 2000/12/07 22:18:55 thorpej Exp $ */ /*- @@ -3281,10 +3281,9 @@ pmap_physpage_alloc(int usage, paddr_t *pap) * properly initialize it in the constructor. */ - pg = uvm_pagealloc(NULL, 0, NULL, UVM_PGA_USERESERVE); + pg = uvm_pagealloc(NULL, 0, NULL, usage == PGU_L1PT ? + UVM_PGA_USERESERVE : UVM_PGA_USERESERVE|UVM_PGA_ZERO); if (pg != NULL) { - if (usage != PGU_L1PT) - uvm_pagezero(pg); pa = VM_PAGE_TO_PHYS(pg); pvh = pa_to_pvh(pa); |