diff options
author | scottl <scottl@FreeBSD.org> | 2006-01-01 22:52:21 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2006-01-01 22:52:21 +0000 |
commit | 61f82777189ce34e2869ef1ec26886c896655a4d (patch) | |
tree | 26dee8c4e0a644030be9a98c0dd61666f9a923eb | |
parent | 66430308611896eb08ae0d91a3c5a25b59043c4d (diff) | |
download | FreeBSD-src-61f82777189ce34e2869ef1ec26886c896655a4d.zip FreeBSD-src-61f82777189ce34e2869ef1ec26886c896655a4d.tar.gz |
Use the correct units when handling the hw.physmem tunable.
-rw-r--r-- | sys/sparc64/sparc64/pmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sparc64/sparc64/pmap.c b/sys/sparc64/sparc64/pmap.c index 17f95af..288f0f6 100644 --- a/sys/sparc64/sparc64/pmap.c +++ b/sys/sparc64/sparc64/pmap.c @@ -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); |