Exclude the EFI framebuffer from phys_avail[] on arm64.
On the ThunderX the region occupied by the framebuffer is included in the EFI map, so explicitly add it to the set of regions that aren't managed by the physical memory allocator. PR: 231064 Reviewed by: andrew Approved by: re (gjb) MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D17073
This commit is contained in:
parent
8062037ce7
commit
3dcd4f12ac
@ -982,6 +982,7 @@ cache_setup(void)
|
||||
void
|
||||
initarm(struct arm64_bootparams *abp)
|
||||
{
|
||||
struct efi_fb *efifb;
|
||||
struct efi_map_header *efihdr;
|
||||
struct pcpu *pcpup;
|
||||
char *env;
|
||||
@ -1031,6 +1032,13 @@ initarm(struct arm64_bootparams *abp)
|
||||
EXFLAG_NODUMP | EXFLAG_NOALLOC);
|
||||
#endif
|
||||
|
||||
/* Exclude the EFI framebuffer from our view of physical memory. */
|
||||
efifb = (struct efi_fb *)preload_search_info(kmdp,
|
||||
MODINFO_METADATA | MODINFOMD_EFI_FB);
|
||||
if (efifb != NULL)
|
||||
arm_physmem_exclude_region(efifb->fb_addr, efifb->fb_size,
|
||||
EXFLAG_NOALLOC);
|
||||
|
||||
/* Set the pcpu data, this is needed by pmap_bootstrap */
|
||||
pcpup = &__pcpu[0];
|
||||
pcpu_init(pcpup, 0, sizeof(struct pcpu));
|
||||
|
Loading…
x
Reference in New Issue
Block a user