summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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