Date: Thu, 31 May 2018 11:11:23 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r334420 - head/sys/arm64/arm64 Message-ID: <201805311111.w4VBBNqY021988@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 "
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805311111.w4VBBNqY021988>