diff options
author | jake <jake@FreeBSD.org> | 2003-04-10 17:18:52 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2003-04-10 17:18:52 +0000 |
commit | 2a488098e335f6345e9235190cdc78fa82e9d61f (patch) | |
tree | f3ee9866f390c95c0f9baf7e038fa8325171a8e1 | |
parent | b1aaabebc13ab422f1be1c8c1d398fbc5eed156f (diff) | |
download | FreeBSD-src-2a488098e335f6345e9235190cdc78fa82e9d61f.zip FreeBSD-src-2a488098e335f6345e9235190cdc78fa82e9d61f.tar.gz |
Print real memory/avail memory on startup like other platforms. Hide
printing the model under bootverbose.
-rw-r--r-- | sys/sparc64/sparc64/machdep.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c index 5628770..7f3aa7a 100644 --- a/sys/sparc64/sparc64/machdep.c +++ b/sys/sparc64/sparc64/machdep.c @@ -170,8 +170,8 @@ cpu_startup(void *arg) tick_tc.tc_name = "tick"; tc_init(&tick_tc); - cpu_identify(rdpr(ver), tick_freq, PCPU_GET(cpuid)); - printf("Model: %s\n", sparc64_model); + printf("real memory = %lu (%lu MB)\n", physmem * PAGE_SIZE, + physmem / ((1024 * 1024) / PAGE_SIZE)); vm_ksubmap_init(&kmi); @@ -180,6 +180,14 @@ cpu_startup(void *arg) EVENTHANDLER_REGISTER(shutdown_final, sparc64_shutdown_final, NULL, SHUTDOWN_PRI_LAST); + + printf("avail memory = %lu (%lu MB)\n", cnt.v_free_count * PAGE_SIZE, + cnt.v_free_count / ((1024 * 1024) / PAGE_SIZE)); + + if (bootverbose) + printf("machine: %s\n", sparc64_model); + + cpu_identify(rdpr(ver), tick_freq, PCPU_GET(cpuid)); } void |