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:
parent
c0131489cf
commit
f45ad5cd19
@ -305,6 +305,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 = btoc(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);
|
||||||
@ -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.
|
* vmspace structure.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user