From 21e598cdcb6f31da29e3e3dce64ff83781834bd0 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 20 Jun 2006 14:06:02 +0000 Subject: fix memory reporting on alphas with 2GB or more; ok miod --- sys/arch/alpha/alpha/machdep.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'sys/arch/alpha') diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c index 26ef3141f1f..aef2e8c3c05 100644 --- a/sys/arch/alpha/alpha/machdep.c +++ b/sys/arch/alpha/alpha/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.101 2006/06/15 20:08:29 brad Exp $ */ +/* $OpenBSD: machdep.c,v 1.102 2006/06/20 14:06:01 deraadt Exp $ */ /* $NetBSD: machdep.c,v 1.210 2000/06/01 17:12:38 thorpej Exp $ */ /*- @@ -620,8 +620,8 @@ nobootinfo: if (totalphysmem == 0) panic("can't happen: system seems to have no memory!"); #if 0 - printf("totalphysmem = %d\n", totalphysmem); - printf("physmem = %d\n", physmem); + printf("totalphysmem = %u\n", totalphysmem); + printf("physmem = %u\n", physmem); printf("resvmem = %d\n", resvmem); printf("unusedmem = %d\n", unusedmem); printf("unknownmem = %d\n", unknownmem); @@ -892,17 +892,17 @@ cpu_startup() */ printf(version); identifycpu(); - printf("total memory = %ld (%ldK)\n", (long)ptoa(totalphysmem), - (long)ptoa(totalphysmem) / 1024); - printf("(%ld reserved for PROM, ", (long)ptoa(resvmem)); - printf("%ld used by OpenBSD)\n", (long)ptoa(physmem)); + printf("total memory = %ld (%ldK)\n", ptoa((u_long)totalphysmem), + ptoa((u_long)totalphysmem) / 1024); + printf("(%ld reserved for PROM, ", ptoa((u_long)resvmem)); + printf("%ld used by OpenBSD)\n", ptoa((u_long)physmem)); if (unusedmem) { printf("WARNING: unused memory = %ld (%ldK)\n", - (long)ptoa(unusedmem), (long)ptoa(unusedmem) / 1024); + ptoa((u_long)unusedmem), ptoa((u_long)unusedmem) / 1024); } if (unknownmem) { printf("WARNING: %ld (%ldK) of memory with unknown purpose\n", - (long)ptoa(unknownmem), (long)ptoa(unknownmem) / 1024); + ptoa((u_long)unknownmem), ptoa((u_long)unknownmem) / 1024); } /* -- cgit v1.2.3