Page MenuHomeFreeBSD

D20857.diff
No OneTemporary

D20857.diff

Index: head/sys/powerpc/pseries/platform_chrp.c
===================================================================
--- head/sys/powerpc/pseries/platform_chrp.c
+++ head/sys/powerpc/pseries/platform_chrp.c
@@ -140,8 +140,15 @@
if (!(mfmsr() & PSL_HV)) {
struct mem_region *phys, *avail;
int nphys, navail;
+ vm_offset_t off;
+
mem_regions(&phys, &nphys, &avail, &navail);
- realmaxaddr = phys[0].mr_size;
+
+ realmaxaddr = 0;
+ for (i = 0; i < nphys; i++) {
+ off = phys[i].mr_start + phys[i].mr_size;
+ realmaxaddr = MAX(off, realmaxaddr);
+ }
pmap_mmu_install("mmu_phyp", BUS_PROBE_SPECIFIC);
cpu_idle_hook = phyp_cpu_idle;

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 12, 4:52 AM (21 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15761379
Default Alt Text
D20857.diff (654 B)

Event Timeline