MFC revisions 1.152 and 1.159

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

  Fix a typo in a comment.
This commit is contained in:
alc 2007-04-04 03:36:12 +00:00
parent c0131489cf
commit f45ad5cd19

View File

@ -305,6 +305,7 @@ pmap_bootstrap(vm_offset_t ekva)
qsort(mra, sz, sizeof (*mra), mr_cmp);
physsz = 0;
getenv_quad("hw.physmem", &physmem);
physmem = btoc(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);
@ -1007,7 +1008,7 @@ pmap_pinit0(pmap_t pm)
}
/*
* Initialize a preallocated and zeroed pmap structure, uch as one in a
* Initialize a preallocated and zeroed pmap structure, such as one in a
* vmspace structure.
*/
void