powerpc/booke: Fix Book-E boot post-minidump
r353489 added minidump support for powerpc64, but it added a dependency on the dump_avail array. Leaving it uninitialized caused breakage in late boot. Initialize dump_avail, even though the 64-bit booke pmap doesn't yet support minidumps, but will in the future.
This commit is contained in:
parent
a8630f59f9
commit
dc2b5bb497
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353908
@ -1787,6 +1787,8 @@ mmu_booke_bootstrap(mmu_t mmu, vm_offset_t start, vm_offset_t kernelend)
|
||||
hwphyssz - physsz;
|
||||
physsz = hwphyssz;
|
||||
phys_avail_count++;
|
||||
dump_avail[j] = phys_avail[j];
|
||||
dump_avail[j + 1] = phys_avail[j + 1];
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -1796,6 +1798,8 @@ mmu_booke_bootstrap(mmu_t mmu, vm_offset_t start, vm_offset_t kernelend)
|
||||
availmem_regions[i].mr_size;
|
||||
phys_avail_count++;
|
||||
physsz += availmem_regions[i].mr_size;
|
||||
dump_avail[j] = phys_avail[j];
|
||||
dump_avail[j + 1] = phys_avail[j + 1];
|
||||
}
|
||||
physmem = btoc(physsz);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user