From 5428bb231f18ff651cc5d325640f0a7e495f143e Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Thu, 31 May 2018 11:11:23 +0000 Subject: [PATCH] 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 --- sys/arm64/arm64/efirt_machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm64/arm64/efirt_machdep.c b/sys/arm64/arm64/efirt_machdep.c index a7c6abaee5c4..b476295ac696 100644 --- a/sys/arm64/arm64/efirt_machdep.c +++ b/sys/arm64/arm64/efirt_machdep.c @@ -196,7 +196,7 @@ efi_create_1t1_map(struct efi_md *map, int ndesc, int descsz) 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 "