diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-03-31 19:46:28 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-03-31 19:46:28 +0000 |
commit | 4cddf39fa9f2c247e9b4dffe23108d570a07d80c (patch) | |
tree | 9df839790aa56567db75db4a0f289c8a7d888c22 /sys/arch/hppa64 | |
parent | 294102cc36f58535b618cfa97ca80dd1461dc030 (diff) |
Make sure the boundaries of uvm_pglistalloc() calls are set up with low
being page-aligned, and high being end of page (i.e.
high & PAGE_MASK == PAGE_MASK) everywhere, for consistency. Future code
will depend on this.
ok deraadt@
Diffstat (limited to 'sys/arch/hppa64')
-rw-r--r-- | sys/arch/hppa64/hppa64/pmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa64/hppa64/pmap.c b/sys/arch/hppa64/hppa64/pmap.c index 43cc943d358..879d7f9951a 100644 --- a/sys/arch/hppa64/hppa64/pmap.c +++ b/sys/arch/hppa64/hppa64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.8 2009/12/16 16:54:42 jasper Exp $ */ +/* $OpenBSD: pmap.c,v 1.9 2010/03/31 19:46:27 miod Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -620,7 +620,7 @@ pmap_create() pmap->pm_ptphint = NULL; TAILQ_INIT(&pmap->pm_pglist); - if (uvm_pglistalloc(2 * PAGE_SIZE, 0, VM_MIN_KERNEL_ADDRESS, + if (uvm_pglistalloc(2 * PAGE_SIZE, 0, VM_MIN_KERNEL_ADDRESS - 1, PAGE_SIZE, 2 * PAGE_SIZE, &pmap->pm_pglist, 1, UVM_PLA_WAITOK)) panic("pmap_create: no pages"); |