diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-08-25 19:05:57 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-08-25 19:05:57 +0000 |
commit | 74260c3e72eb04de8da546dec39bf87e7bf994a2 (patch) | |
tree | ca6d675348766a2acd2d60ae09bf7a72a4ca7bc9 /sys/arch/sparc64 | |
parent | 15f834f1cf4d40e15512b242a685b765f5c0c202 (diff) |
Fix printing of more than 2G of memory.
ok miod@
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/sparc64/machdep.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index 4da4ca9d16c..1768c12810a 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.93 2007/08/04 16:44:15 kettenis Exp $ */ +/* $OpenBSD: machdep.c,v 1.94 2007/08/25 19:05:56 kettenis Exp $ */ /* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */ /*- @@ -246,8 +246,8 @@ cpu_startup() */ printf(version); /*identifycpu();*/ - printf("real mem = %lu (%luMB)\n", ctob(physmem), - ctob(physmem)/1024/1024); + printf("real mem = %lu (%luMB)\n", ptoa((psize_t)physmem), + ptoa((psize_t)physmem)/1024/1024); /* * Find out how much space we need, allocate it, * and then give everything true virtual addresses. @@ -276,8 +276,8 @@ cpu_startup() #ifdef DEBUG pmapdebug = opmapdebug; #endif - printf("avail mem = %lu (%luMB)\n", ptoa(uvmexp.free), - ptoa(uvmexp.free)/1024/1024); + printf("avail mem = %lu (%luMB)\n", ptoa((psize_t)uvmexp.free), + ptoa((psize_t)uvmexp.free)/1024/1024); /* * Set up buffers, so they can be used to read disk labels. |