Page MenuHomeFreeBSD

D34510.id103711.diff
No OneTemporary

D34510.id103711.diff

diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -816,7 +816,7 @@
continue;
}
- if (!add_physmap_entry(p->md_phys, (p->md_pages * PAGE_SIZE),
+ if (!add_physmap_entry(p->md_phys, p->md_pages * EFI_PAGE_SIZE,
physmap, physmap_idx))
break;
}
diff --git a/sys/arm/arm/machdep_boot.c b/sys/arm/arm/machdep_boot.c
--- a/sys/arm/arm/machdep_boot.c
+++ b/sys/arm/arm/machdep_boot.c
@@ -490,7 +490,7 @@
break;
mr[j].mr_start = p->md_phys;
- mr[j].mr_size = p->md_pages * PAGE_SIZE;
+ mr[j].mr_size = p->md_pages * EFI_PAGE_SIZE;
memory_size += mr[j].mr_size;
}
diff --git a/sys/arm64/arm64/machdep.c b/sys/arm64/arm64/machdep.c
--- a/sys/arm64/arm64/machdep.c
+++ b/sys/arm64/arm64/machdep.c
@@ -469,7 +469,7 @@
*/
break;
default:
- physmem_exclude_region(p->md_phys, p->md_pages * PAGE_SIZE,
+ physmem_exclude_region(p->md_phys, p->md_pages * EFI_PAGE_SIZE,
EXFLAG_NOALLOC);
}
}
@@ -501,7 +501,7 @@
* We're allowed to use any entry with these types.
*/
physmem_hardware_region(p->md_phys,
- p->md_pages * PAGE_SIZE);
+ p->md_pages * EFI_PAGE_SIZE);
break;
}
}

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 11, 5:07 PM (19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31270322
Default Alt Text
D34510.id103711.diff (1 KB)

Event Timeline