artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c606b95
)
alloc_contiguous_pages() is supposed to round the allocation size to a page
author
miod
<miod@openbsd.org>
Tue, 16 Jun 2015 18:28:51 +0000
(18:28 +0000)
committer
miod
<miod@openbsd.org>
Tue, 16 Jun 2015 18:28:51 +0000
(18:28 +0000)
boundary, not to an u area boundary. Oops.
sys/arch/mips64/mips64/cpu.c
patch
|
blob
|
history
diff --git
a/sys/arch/mips64/mips64/cpu.c
b/sys/arch/mips64/mips64/cpu.c
index
88f3e35
..
43eca29
100644
(file)
--- a/
sys/arch/mips64/mips64/cpu.c
+++ b/
sys/arch/mips64/mips64/cpu.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: cpu.c,v 1.5
7 2015/02/11 05:25:15
miod Exp $ */
+/* $OpenBSD: cpu.c,v 1.5
8 2015/06/16 18:28:51
miod Exp $ */
/*
* Copyright (c) 1997-2004 Opsycon AB (www.opsycon.se)
@@
-456,7
+456,7
@@
alloc_contiguous_pages(size_t size)
paddr_t pa;
TAILQ_INIT(&mlist);
- error = uvm_pglistalloc(round
up(size, USPACE
), 0, (paddr_t)-1, 0, 0,
+ error = uvm_pglistalloc(round
_page(size
), 0, (paddr_t)-1, 0, 0,
&mlist, 1, UVM_PLA_NOWAIT | UVM_PLA_ZERO);
if (error)
return 0;