MFC: Fix the hw.realmem sysctl on alpha, ia64, and sparc64.

Approved by:	re (scottl)
This commit is contained in:
jhb 2006-03-01 16:30:51 +00:00
parent 0fb8aa442e
commit 5b50f145a7
3 changed files with 3 additions and 3 deletions

View File

@ -251,7 +251,7 @@ cpu_startup(dummy)
#endif
printf("real memory = %ld (%ld MB)\n", alpha_ptob(Maxmem),
alpha_ptob(Maxmem) / 1048576);
realmem = alpha_ptob(Maxmem);
realmem = Maxmem;
/*
* Display any holes after the first chunk of extended memory.

View File

@ -248,7 +248,7 @@ cpu_startup(dummy)
#endif
printf("real memory = %ld (%ld MB)\n", ia64_ptob(Maxmem),
ia64_ptob(Maxmem) / 1048576);
realmem = ia64_ptob(Maxmem);
realmem = Maxmem;
/*
* Display any holes after the first chunk of extended memory.

View File

@ -201,7 +201,7 @@ cpu_startup(void *arg)
physsz += sparc64_memreg[i].mr_size;
printf("real memory = %lu (%lu MB)\n", physsz,
physsz / (1024 * 1024));
realmem = (long)physsz;
realmem = (long)physsz / PAGE_SIZE;
vm_ksubmap_init(&kmi);