summaryrefslogtreecommitdiff
path: root/sys/arch/aviion
diff options
context:
space:
mode:
authorMartin Reindl <martin@cvs.openbsd.org>2007-12-31 09:23:55 +0000
committerMartin Reindl <martin@cvs.openbsd.org>2007-12-31 09:23:55 +0000
commite1ce8a29bd40d25eacf813c6e404f6c93aeca229 (patch)
tree6e545dc0e2e247dc1dcb11f38e31aab7b65f840a /sys/arch/aviion
parentb1a9105da952d5a2d6c3c3413d20c6761117784f (diff)
replace ctob/btoc by ptoa/atop as done for other architectures
Diffstat (limited to 'sys/arch/aviion')
-rw-r--r--sys/arch/aviion/aviion/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/aviion/aviion/machdep.c b/sys/arch/aviion/aviion/machdep.c
index 9f72bf20f15..7616fa13df4 100644
--- a/sys/arch/aviion/aviion/machdep.c
+++ b/sys/arch/aviion/aviion/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.20 2007/12/19 22:05:04 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.21 2007/12/31 09:23:53 martin Exp $ */
/*
* Copyright (c) 2007 Miodrag Vallat.
*
@@ -255,7 +255,7 @@ cpu_startup()
* Initialize error message buffer (at end of core).
* avail_end was pre-decremented in aviion_bootstrap() to compensate.
*/
- for (i = 0; i < btoc(MSGBUFSIZE); i++)
+ for (i = 0; i < atop(MSGBUFSIZE); i++)
pmap_kenter_pa((paddr_t)msgbufp + i * PAGE_SIZE,
avail_end + i * PAGE_SIZE, VM_PROT_READ | VM_PROT_WRITE);
pmap_update(pmap_kernel());