Print real / avail memory in megabytes rather than kilobytes.

This commit is contained in:
Dag-Erling Smørgrav 2002-11-09 16:19:14 +00:00
parent 29f194457c
commit 97b67f3141
8 changed files with 32 additions and 30 deletions

View File

@ -239,7 +239,8 @@ cpu_startup(dummy)
#ifdef PERFMON
perfmon_init();
#endif
printf("real memory = %ld (%ldK bytes)\n", alpha_ptob(Maxmem), alpha_ptob(Maxmem) / 1024);
printf("real memory = %ld (%ld MB)\n", alpha_ptob(Maxmem),
alpha_ptob(Maxmem) / 1048576);
/*
* Display any holes after the first chunk of extended memory.
@ -258,8 +259,8 @@ cpu_startup(dummy)
vm_ksubmap_init(&kmi);
printf("avail memory = %ld (%ldK bytes)\n", ptoa(cnt.v_free_count),
ptoa(cnt.v_free_count) / 1024);
printf("avail memory = %ld (%ld MB)\n", ptoa(cnt.v_free_count),
ptoa(cnt.v_free_count) / 1048576);
/*
* Set up buffers, so they can be used to read disk labels.

View File

@ -199,8 +199,8 @@ cpu_startup(dummy)
#ifdef PERFMON
perfmon_init();
#endif
printf("real memory = %u (%uK bytes)\n", ptoa(Maxmem),
ptoa(Maxmem) / 1024);
printf("real memory = %u (%u MB)\n", ptoa(Maxmem),
ptoa(Maxmem) / 1048576);
/*
* Display any holes after the first chunk of extended memory.
*/
@ -220,8 +220,8 @@ cpu_startup(dummy)
vm_ksubmap_init(&kmi);
printf("avail memory = %u (%uK bytes)\n", ptoa(cnt.v_free_count),
ptoa(cnt.v_free_count) / 1024);
printf("avail memory = %u (%u MB)\n", ptoa(cnt.v_free_count),
ptoa(cnt.v_free_count) / 1048576);
/*
* Set up buffers, so they can be used to read disk labels.

View File

@ -199,8 +199,8 @@ cpu_startup(dummy)
#ifdef PERFMON
perfmon_init();
#endif
printf("real memory = %u (%uK bytes)\n", ptoa(Maxmem),
ptoa(Maxmem) / 1024);
printf("real memory = %u (%u MB)\n", ptoa(Maxmem),
ptoa(Maxmem) / 1048576);
/*
* Display any holes after the first chunk of extended memory.
*/
@ -220,8 +220,8 @@ cpu_startup(dummy)
vm_ksubmap_init(&kmi);
printf("avail memory = %u (%uK bytes)\n", ptoa(cnt.v_free_count),
ptoa(cnt.v_free_count) / 1024);
printf("avail memory = %u (%u MB)\n", ptoa(cnt.v_free_count),
ptoa(cnt.v_free_count) / 1048576);
/*
* Set up buffers, so they can be used to read disk labels.

View File

@ -169,7 +169,8 @@ cpu_startup(dummy)
#ifdef PERFMON
perfmon_init();
#endif
printf("real memory = %ld (%ldK bytes)\n", ia64_ptob(Maxmem), ia64_ptob(Maxmem) / 1024);
printf("real memory = %ld (%ld MB)\n", ia64_ptob(Maxmem),
ia64_ptob(Maxmem) / 1048576);
/*
* Display any holes after the first chunk of extended memory.
@ -188,8 +189,8 @@ cpu_startup(dummy)
vm_ksubmap_init(&kmi);
printf("avail memory = %ld (%ldK bytes)\n", ptoa(cnt.v_free_count),
ptoa(cnt.v_free_count) / 1024);
printf("avail memory = %ld (%ld MB)\n", ptoa(cnt.v_free_count),
ptoa(cnt.v_free_count) / 1048576);
if (fpswa_interface == NULL)
printf("Warning: no FPSWA package supplied\n");

View File

@ -219,8 +219,8 @@ cpu_startup(dummy)
#ifdef PERFMON
perfmon_init();
#endif
printf("real memory = %u (%uK bytes)\n", ptoa(Maxmem),
ptoa(Maxmem) / 1024);
printf("real memory = %u (%u MB)\n", ptoa(Maxmem),
ptoa(Maxmem) / 1048576);
/*
* Display any holes after the first chunk of extended memory.
*/
@ -240,8 +240,8 @@ cpu_startup(dummy)
vm_ksubmap_init(&kmi);
printf("avail memory = %u (%uK bytes)\n", ptoa(cnt.v_free_count),
ptoa(cnt.v_free_count) / 1024);
printf("avail memory = %u (%u MB)\n", ptoa(cnt.v_free_count),
ptoa(cnt.v_free_count) / 1048576);
/*
* Set up buffers, so they can be used to read disk labels.

View File

@ -219,8 +219,8 @@ cpu_startup(dummy)
#ifdef PERFMON
perfmon_init();
#endif
printf("real memory = %u (%uK bytes)\n", ptoa(Maxmem),
ptoa(Maxmem) / 1024);
printf("real memory = %u (%u MB)\n", ptoa(Maxmem),
ptoa(Maxmem) / 1048576);
/*
* Display any holes after the first chunk of extended memory.
*/
@ -240,8 +240,8 @@ cpu_startup(dummy)
vm_ksubmap_init(&kmi);
printf("avail memory = %u (%uK bytes)\n", ptoa(cnt.v_free_count),
ptoa(cnt.v_free_count) / 1024);
printf("avail memory = %u (%u MB)\n", ptoa(cnt.v_free_count),
ptoa(cnt.v_free_count) / 1048576);
/*
* Set up buffers, so they can be used to read disk labels.

View File

@ -186,8 +186,8 @@ cpu_startup(void *dummy)
#ifdef PERFMON
perfmon_init();
#endif
printf("real memory = %ld (%ldK bytes)\n", ptoa(Maxmem),
ptoa(Maxmem) / 1024);
printf("real memory = %ld (%ld MB)\n", ptoa(Maxmem),
ptoa(Maxmem) / 1048576);
/*
* Display any holes after the first chunk of extended memory.
@ -207,8 +207,8 @@ cpu_startup(void *dummy)
vm_ksubmap_init(&kmi);
printf("avail memory = %ld (%ldK bytes)\n", ptoa(cnt.v_free_count),
ptoa(cnt.v_free_count) / 1024);
printf("avail memory = %ld (%ld MB)\n", ptoa(cnt.v_free_count),
ptoa(cnt.v_free_count) / 1048576);
/*
* Set up buffers, so they can be used to read disk labels.

View File

@ -186,8 +186,8 @@ cpu_startup(void *dummy)
#ifdef PERFMON
perfmon_init();
#endif
printf("real memory = %ld (%ldK bytes)\n", ptoa(Maxmem),
ptoa(Maxmem) / 1024);
printf("real memory = %ld (%ld MB)\n", ptoa(Maxmem),
ptoa(Maxmem) / 1048576);
/*
* Display any holes after the first chunk of extended memory.
@ -207,8 +207,8 @@ cpu_startup(void *dummy)
vm_ksubmap_init(&kmi);
printf("avail memory = %ld (%ldK bytes)\n", ptoa(cnt.v_free_count),
ptoa(cnt.v_free_count) / 1024);
printf("avail memory = %ld (%ld MB)\n", ptoa(cnt.v_free_count),
ptoa(cnt.v_free_count) / 1048576);
/*
* Set up buffers, so they can be used to read disk labels.