From 07e8f9f442a133d2aba1c20e52602b4e4f15c864 Mon Sep 17 00:00:00 2001 From: Peter Valchev Date: Wed, 12 Sep 2001 05:28:43 +0000 Subject: Print avail/real memory sizes in KB in addition to bytes as in i386 land. ok drahn --- sys/arch/macppc/macppc/machdep.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c index bbdeb5e1ced..b41cfd7e0ee 100644 --- a/sys/arch/macppc/macppc/machdep.c +++ b/sys/arch/macppc/macppc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.3 2001/09/12 00:23:33 art Exp $ */ +/* $OpenBSD: machdep.c,v 1.4 2001/09/12 05:28:42 pvalchev Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -513,7 +513,7 @@ cpu_startup() printf("%s", version); - printf("real mem = %d\n", ctob(physmem)); + printf("real mem = %d (%dK)\n", ctob(physmem), ctob(physmem)/1024); /* * Find out how much space we need, allocate it, @@ -581,7 +581,8 @@ cpu_startup() mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, VM_MBUF_SIZE, VM_MAP_INTRSAFE, FALSE, NULL); - printf("avail mem = %d\n", ptoa(uvmexp.free)); + printf("avail mem = %d (%dK)\n", ptoa(uvmexp.free), + ptoa(uvmexp.free)/1024); printf("using %d buffers containing %d bytes of memory\n", nbuf, bufpages * PAGE_SIZE); -- cgit v1.2.3