diff options
author | Peter Valchev <pvalchev@cvs.openbsd.org> | 2007-05-23 20:33:48 +0000 |
---|---|---|
committer | Peter Valchev <pvalchev@cvs.openbsd.org> | 2007-05-23 20:33:48 +0000 |
commit | a1c89e25c5c346f99dc51b78682349788f845846 (patch) | |
tree | 2dc182bdfb2d42eb1fa7ff2e40c8f70b24e5e63d /sys/arch/amd64 | |
parent | 25f0a82c2a3f761cc8804e53e0deb876ba827cc5 (diff) |
Print real/available memory in MB as well as bytes in dmesg, and unify
architectures to print it the same way.
ok henning, miod; i386 part from tom
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/machdep.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c index 542807f4887..a49db688c75 100644 --- a/sys/arch/amd64/amd64/machdep.c +++ b/sys/arch/amd64/amd64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.55 2007/02/17 23:59:03 marco Exp $ */ +/* $OpenBSD: machdep.c,v 1.56 2007/05/23 20:33:46 pvalchev Exp $ */ /* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */ /*- @@ -300,7 +300,8 @@ cpu_startup(void) printf("%s", version); - printf("real mem = %u (%uK)\n", ctob(physmem), ctob(physmem)/1024); + printf("real mem = %u (%uMB)\n", ctob(physmem), + ctob(physmem)/1024/1024); if (physmem >= btoc(1ULL << 32)) { extern int amdgart_enable; @@ -339,8 +340,8 @@ cpu_startup(void) phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, VM_PHYS_SIZE, 0, FALSE, NULL); - printf("avail mem = %lu (%luK)\n", ptoa(uvmexp.free), - ptoa(uvmexp.free)/1024); + printf("avail mem = %lu (%luMB)\n", ptoa(uvmexp.free), + ptoa(uvmexp.free)/1024/1024); printf("using %u buffers containing %u bytes (%uK) of memory\n", nbuf, bufpages * PAGE_SIZE, bufpages * PAGE_SIZE / 1024); |