summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2006-12-10 04:14:29 +0000
committerkmacy <kmacy@FreeBSD.org>2006-12-10 04:14:29 +0000
commitd60154cb6519d2023a2928a158f73cd54d7d5200 (patch)
tree788d26388d7ef6a9f7b72dd7957890dbff00020a /sys
parentfaefcaf05d009614aed49281541a20473b250d71 (diff)
downloadFreeBSD-src-d60154cb6519d2023a2928a158f73cd54d7d5200.zip
FreeBSD-src-d60154cb6519d2023a2928a158f73cd54d7d5200.tar.gz
better handle the case of hw.physmemstart being hw.physmem not being set,
previously we were acting as if physmem was being set when it was not
Diffstat (limited to 'sys')
-rw-r--r--sys/sun4v/sun4v/pmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sun4v/sun4v/pmap.c b/sys/sun4v/sun4v/pmap.c
index 5673dd6..3a97c9e 100644
--- a/sys/sun4v/sun4v/pmap.c
+++ b/sys/sun4v/sun4v/pmap.c
@@ -523,7 +523,8 @@ pmap_bootstrap(vm_offset_t ekva)
physmem = atop(physmem_tunable);
KDPRINTF("desired physmem=0x%lx\n", physmem_tunable);
}
- physmem_tunable += physmemstart_tunable;
+ if ((physmem_tunable != 0) && (physmemstart_tunable != 0))
+ physmem_tunable += physmemstart_tunable;
bzero(real_phys_avail, sizeof(real_phys_avail));
bzero(tmp_phys_avail, sizeof(tmp_phys_avail));
OpenPOWER on IntegriCloud