svn commit: r334420 - head/sys/arm64/arm64

Andrew Turner andrew at FreeBSD.org
Thu May 31 11:11:24 UTC 2018


Author: andrew
Date: Thu May 31 11:11:23 2018
New Revision: 334420
URL: https://svnweb.freebsd.org/changeset/base/334420

Log:
  Fix the memory attribute for EFI_MD_ATTR_UC on arm64.
  
  This is defined as Device-nGnRnE in the UEFI spec (UEFI 2.4, section
  2.3.6.1). This is the VM_MEMATTR_DEVICE type in FreeBSD.
  
  Reported by:	tuexen
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/arm64/arm64/efirt_machdep.c

Modified: head/sys/arm64/arm64/efirt_machdep.c
==============================================================================
--- head/sys/arm64/arm64/efirt_machdep.c	Thu May 31 09:56:02 2018	(r334419)
+++ head/sys/arm64/arm64/efirt_machdep.c	Thu May 31 11:11:23 2018	(r334420)
@@ -196,7 +196,7 @@ efi_create_1t1_map(struct efi_md *map, int ndesc, int 
 		else if ((p->md_attr & EFI_MD_ATTR_WC) != 0)
 			mode = VM_MEMATTR_WRITE_COMBINING;
 		else if ((p->md_attr & EFI_MD_ATTR_UC) != 0)
-			mode = VM_MEMATTR_UNCACHEABLE;
+			mode = VM_MEMATTR_DEVICE;
 		else {
 			if (bootverbose)
 				printf("EFI Runtime entry %d mapping "


More information about the svn-src-all mailing list