summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-08-21 03:07:03 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-08-21 03:07:03 +0000
commitb6e1a5e308eeb763513ac907df70b8186545dea6 (patch)
tree280767379d1d2643e79e413cc2c2ec93758821dd /sys/arch/powerpc
parent596311d4be39a787ac9b9fbee739ccde21375bdb (diff)
use round_page() not an incorrect version of it using trunc_page().
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r--sys/arch/powerpc/powerpc/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc/powerpc/machdep.c b/sys/arch/powerpc/powerpc/machdep.c
index 6a26b4f942b..4b8325a62d6 100644
--- a/sys/arch/powerpc/powerpc/machdep.c
+++ b/sys/arch/powerpc/powerpc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.76 2001/08/19 20:02:22 drahn Exp $ */
+/* $OpenBSD: machdep.c,v 1.77 2001/08/21 03:07:02 drahn Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
@@ -1210,7 +1210,7 @@ bus_mem_add_mapping(bpa, size, cacheable, bshp)
bus_size_t alloc_size;
/* need to steal vm space before kernel vm is initialized */
- alloc_size = trunc_page(size + PAGE_SIZE-1);
+ alloc_size = round_page(size);
ppc_kvm_size -= alloc_size;
vaddr = VM_MIN_KERNEL_ADDRESS + ppc_kvm_size;