diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-07-14 20:52:45 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-07-14 20:52:45 +0000 |
commit | f799a8ecab68f6a38033c9899e1381aa2d42e71e (patch) | |
tree | ce9df505e3464c58c0a8805f6a60cd57b441de86 | |
parent | d4c0236e0c7088ae8b75bf144e89fe6712205bbc (diff) |
Print real/avail mem like we do on all other architectures.
-rw-r--r-- | sys/arch/powerpc64/powerpc64/machdep.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/powerpc64/powerpc64/machdep.c b/sys/arch/powerpc64/powerpc64/machdep.c index 482f08c1e04..c96cee66c58 100644 --- a/sys/arch/powerpc64/powerpc64/machdep.c +++ b/sys/arch/powerpc64/powerpc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.50 2020/07/13 22:37:37 kettenis Exp $ */ +/* $OpenBSD: machdep.c,v 1.51 2020/07/14 20:52:44 kettenis Exp $ */ /* * Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org> @@ -579,6 +579,9 @@ cpu_startup(void) printf("%s", version); + printf("real mem = %lu (%luMB)\n", ptoa(physmem), + ptoa(physmem)/1024/1024); + /* * Allocate a submap for exec arguments. This map effectively * limits the number of processes exec'ing at any time. @@ -587,7 +590,6 @@ cpu_startup(void) exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, 16 * NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); - /* * Allocate a submap for physio. */ @@ -599,6 +601,9 @@ cpu_startup(void) */ bufinit(); + printf("avail mem = %lu (%luMB)\n", ptoa(uvmexp.free), + ptoa(uvmexp.free)/1024/1024); + /* Remap the FDT. */ pa = trunc_page(fdt_pa); epa = round_page(fdt_pa + fdt_size); |