diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2012-04-21 19:19:07 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2012-04-21 19:19:07 +0000 |
commit | dca03c44410a2d8b47f0da0011c6f8f4a65b44aa (patch) | |
tree | 37b88200700def1c658014060433a615c49679eb | |
parent | e4a2f7a8171e87a79558f9ea38e2bac9d882274f (diff) |
Round the reserved memory size up when printing it in MB units
-rw-r--r-- | sys/arch/sgi/sgi/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sgi/sgi/machdep.c b/sys/arch/sgi/sgi/machdep.c index 43b3ca1c23d..a10c1d66f85 100644 --- a/sys/arch/sgi/sgi/machdep.c +++ b/sys/arch/sgi/sgi/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.120 2012/04/17 09:23:14 landry Exp $ */ +/* $OpenBSD: machdep.c,v 1.121 2012/04/21 19:19:06 miod Exp $ */ /* * Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -695,7 +695,7 @@ cpu_startup() printf("real mem = %lu (%luMB)\n", ptoa((psize_t)physmem), ptoa((psize_t)physmem)/1024/1024); printf("rsvd mem = %lu (%luMB)\n", ptoa((psize_t)rsvdmem), - ptoa((psize_t)rsvdmem)/1024/1024); + ptoa((psize_t)rsvdmem + 1023 * 1024)/1024/1024); /* * Allocate a submap for exec arguments. This map effectively |