svn commit: r338695 - stable/11/sys/arm64/arm64

Mark Johnston markj at FreeBSD.org
Sat Sep 15 18:02:29 UTC 2018


Author: markj
Date: Sat Sep 15 18:02:28 2018
New Revision: 338695
URL: https://svnweb.freebsd.org/changeset/base/338695

Log:
  MFC r338538:
  Exclude the EFI framebuffer from phys_avail[] on arm64.
  
  PR:	231064

Modified:
  stable/11/sys/arm64/arm64/machdep.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/arm64/arm64/machdep.c
==============================================================================
--- stable/11/sys/arm64/arm64/machdep.c	Sat Sep 15 18:01:15 2018	(r338694)
+++ stable/11/sys/arm64/arm64/machdep.c	Sat Sep 15 18:02:28 2018	(r338695)
@@ -885,6 +885,7 @@ cache_setup(void)
 void
 initarm(struct arm64_bootparams *abp)
 {
+	struct efi_fb *efifb;
 	struct efi_map_header *efihdr;
 	struct pcpu *pcpup;
 #ifdef FDT
@@ -930,6 +931,13 @@ initarm(struct arm64_bootparams *abp)
 		    &physmap_idx);
 	}
 #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);
 
 	/* Print the memory map */
 	mem_len = 0;


More information about the svn-src-stable mailing list