summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/stand/ofwboot/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc64/stand/ofwboot/alloc.c')
-rw-r--r--sys/arch/sparc64/stand/ofwboot/alloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/stand/ofwboot/alloc.c b/sys/arch/sparc64/stand/ofwboot/alloc.c
index be69b061944..7e856657bfd 100644
--- a/sys/arch/sparc64/stand/ofwboot/alloc.c
+++ b/sys/arch/sparc64/stand/ofwboot/alloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: alloc.c,v 1.5 2009/08/17 14:23:09 jsing Exp $ */
+/* $OpenBSD: alloc.c,v 1.6 2013/03/21 21:51:01 deraadt Exp $ */
/* $NetBSD: alloc.c,v 1.1 2000/08/20 14:58:37 mrg Exp $ */
/*
@@ -140,8 +140,8 @@ alloc(unsigned size)
* Allocate memory from the OpenFirmware, rounded
* to page size, and record the chunk size.
*/
- size = roundup(size, NBPG);
- help = OF_claim(0, size, NBPG);
+ size = roundup(size, PAGE_SIZE);
+ help = OF_claim(0, size, PAGE_SIZE);
if (help == (char *)-1)
panic("alloc: out of memory");