Fix the spelling of EFI_PAGE_SIZE

We assume EFI_PAGE_SIZE is the same as PAGE_SIZE, however this may not
be the case. Use the former when working with a list of pages from the
UEFI firmware so the correct size is used.

This will be needed on arm64 where PAGE_SIZE could be 16k or 64k in the
future. The other architectures have been updated to be consistent.

Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34510
This commit is contained in:
Andrew Turner
2022-03-09 12:59:01 +00:00
parent e3f7087489
commit 9cf15aefb9
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -490,7 +490,7 @@ arm_add_efi_map_entries(struct efi_map_header *efihdr, struct mem_region *mr,
break;
mr[j].mr_start = p->md_phys;
mr[j].mr_size = p->md_pages * PAGE_SIZE;
mr[j].mr_size = p->md_pages * EFI_PAGE_SIZE;
memory_size += mr[j].mr_size;
}