summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-02-18 16:31:56 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-02-18 16:31:56 +0000
commit8e7841f3d46866105d6a4bc0f50e7719b747daa2 (patch)
tree27f6a042f29b240742f47c655af0c1bf31331b3e /sys/arch/i386
parent06e8e8d9bc9c248dbe3f0ef7e26f09bfb774e5d0 (diff)
Fix ptoa() cast.
Sigh... ok miod@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/machdep.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index 09d832522dd..3510aacce03 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.417 2008/01/25 19:48:15 weingart Exp $ */
+/* $OpenBSD: machdep.c,v 1.418 2008/02/18 16:31:55 kettenis Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -420,8 +420,9 @@ cpu_startup()
curcpu()->ci_feature_flags = cpu_feature;
identifycpu(curcpu());
- printf("real mem = %llu (%lluMB)\n", ptoa((unsigned long long)physmem),
- ptoa((unsigned long long)physmem)/1024U/1024U);
+ printf("real mem = %llu (%lluMB)\n",
+ (unsigned long long)ptoa((psize_t)physmem),
+ (unsigned long long)ptoa((psize_t)physmem)/1024U/1024U);
/*
* Find out how much space we need, allocate it,
@@ -454,8 +455,8 @@ cpu_startup()
VM_PHYS_SIZE, 0, FALSE, NULL);
printf("avail mem = %llu (%lluMB)\n",
- ptoa((unsigned long long)uvmexp.free),
- ptoa((unsigned long long)uvmexp.free)/1024U/1024U);
+ (unsigned long long)ptoa((psize_t)uvmexp.free),
+ (unsigned long long)ptoa((psize_t)uvmexp.free)/1024U/1024U);
/*
* Set up buffers, so they can be used to read disk labels.