summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-03-31 19:46:28 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-03-31 19:46:28 +0000
commit4cddf39fa9f2c247e9b4dffe23108d570a07d80c (patch)
tree9df839790aa56567db75db4a0f289c8a7d888c22 /sys/arch/alpha
parent294102cc36f58535b618cfa97ca80dd1461dc030 (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/alpha')
-rw-r--r--sys/arch/alpha/alpha/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/alpha/alpha/cpu.c b/sys/arch/alpha/alpha/cpu.c
index 75cdf808b24..0ba05952be5 100644
--- a/sys/arch/alpha/alpha/cpu.c
+++ b/sys/arch/alpha/alpha/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.26 2010/02/20 12:39:41 sobrado Exp $ */
+/* $OpenBSD: cpu.c,v 1.27 2010/03/31 19:46:25 miod Exp $ */
/* $NetBSD: cpu.c,v 1.44 2000/05/23 05:12:53 thorpej Exp $ */
/*-
@@ -338,7 +338,7 @@ recognized:
* Allocate UPAGES contiguous pages for the idle PCB and stack.
*/
TAILQ_INIT(&mlist);
- error = uvm_pglistalloc(USPACE, avail_start, avail_end, 0, 0,
+ error = uvm_pglistalloc(USPACE, avail_start, avail_end - 1, 0, 0,
&mlist, 1, UVM_PLA_WAITOK);
if (error != 0) {
if (ma->ma_slot == hwrpb->rpb_primary_cpu_id) {