MFC: Fix the hw.realmem sysctl on alpha, ia64, and sparc64.
Approved by: re (scottl)
This commit is contained in:
parent
0fb8aa442e
commit
5b50f145a7
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user