Use the correct units when handling the hw.physmem tunable.
This commit is contained in:
parent
a48895a77e
commit
72a067401e
@ -293,6 +293,7 @@ pmap_bootstrap(vm_offset_t ekva)
|
|||||||
qsort(mra, sz, sizeof (*mra), mr_cmp);
|
qsort(mra, sz, sizeof (*mra), mr_cmp);
|
||||||
physsz = 0;
|
physsz = 0;
|
||||||
getenv_quad("hw.physmem", &physmem);
|
getenv_quad("hw.physmem", &physmem);
|
||||||
|
physmem = ctob(physmem);
|
||||||
for (i = 0, j = 0; i < sz; i++, j += 2) {
|
for (i = 0, j = 0; i < sz; i++, j += 2) {
|
||||||
CTR2(KTR_PMAP, "start=%#lx size=%#lx", mra[i].mr_start,
|
CTR2(KTR_PMAP, "start=%#lx size=%#lx", mra[i].mr_start,
|
||||||
mra[i].mr_size);
|
mra[i].mr_size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user