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
This commit is contained in:
Andrew Turner 2018-05-31 11:11:23 +00:00
parent 64415b8b22
commit 5428bb231f

View File

@ -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 "