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
This commit is contained in:
Kip Macy 2006-12-10 04:14:29 +00:00
parent f334280581
commit 504baf688e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165063

View File

@ -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));