Use the correct units when handling the hw.physmem tunable.

This commit is contained in:
Scott Long 2006-01-01 22:52:21 +00:00
parent a48895a77e
commit 72a067401e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153958

View File

@ -293,6 +293,7 @@ pmap_bootstrap(vm_offset_t ekva)
qsort(mra, sz, sizeof (*mra), mr_cmp);
physsz = 0;
getenv_quad("hw.physmem", &physmem);
physmem = ctob(physmem);
for (i = 0, j = 0; i < sz; i++, j += 2) {
CTR2(KTR_PMAP, "start=%#lx size=%#lx", mra[i].mr_start,
mra[i].mr_size);