diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-02-04 17:19:18 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-02-04 17:19:18 +0000 |
commit | ed1908a5314982e32aceafdc84e9ec3be343df48 (patch) | |
tree | 7d76c3d75fe663a47d710ed6fa0abdfa98e25700 /sys/arch/hppa64 | |
parent | deaef39c57e0bee6c4450718402784d5c2bbd013 (diff) |
Unify memory size reports a bit more: always report size in MB, and report
reserved memory on alpha and hppa on its own line (as done on sgi).
Diffstat (limited to 'sys/arch/hppa64')
-rw-r--r-- | sys/arch/hppa64/hppa64/machdep.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/hppa64/hppa64/machdep.c b/sys/arch/hppa64/hppa64/machdep.c index b232ad0ea75..3794891ae17 100644 --- a/sys/arch/hppa64/hppa64/machdep.c +++ b/sys/arch/hppa64/hppa64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.12 2008/06/27 17:22:14 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.13 2009/02/04 17:19:17 miod Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -395,8 +395,9 @@ cpu_startup(void) * join me in this one love dream */ printf("%s%s\n", version, cpu_model); - printf("real mem = %u (%u reserved for PROM, %u used by OpenBSD)\n", - ptoa(physmem), ptoa(resvmem), ptoa(resvphysmem - resvmem)); + printf("real mem = %lu (%luMB)\n", ptoa((psize_t)physmem), + ptoa((psize_t)phsymem) / 1024 / 1024); + printf("rsvd mem = %u (%uKB)\n", ptoa(resvmem), ptoa(resvmem) / 1024); /* * Determine how many buffers to allocate. @@ -428,7 +429,8 @@ printf("here4\n"); VM_PHYS_SIZE, 0, FALSE, NULL); printf("here5\n"); - printf("avail mem = %lu\n", ptoa(uvmexp.free)); + printf("avail mem = %lu (%luMB)\n", ptoa(uvmexp.free), + ptoa(uvmexp.free) / 1024 / 1024); /* * Set up buffers, so they can be used to read disk labels. |