summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2017-07-20 06:54:58 +0000
committerkib <kib@FreeBSD.org>2017-07-20 06:54:58 +0000
commitcc2e94c3cc5ae3ea6664d46c1a7f868b949fe636 (patch)
tree27eba3ec8a8902a03cc80bd20f1ab5d2e8c0091d /sys/amd64
parent3e92bf6265eb8cc206fea4fa61e96ebb7b4a562c (diff)
downloadFreeBSD-src-cc2e94c3cc5ae3ea6664d46c1a7f868b949fe636.zip
FreeBSD-src-cc2e94c3cc5ae3ea6664d46c1a7f868b949fe636.tar.gz
MFC r320936,r320937,r320938:
Fix size argument to vm_pager_allocate().
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/efirt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/efirt.c b/sys/amd64/amd64/efirt.c
index db40cdf..26b0d82 100644
--- a/sys/amd64/amd64/efirt.c
+++ b/sys/amd64/amd64/efirt.c
@@ -192,8 +192,8 @@ efi_create_1t1_map(struct efi_md *map, int ndesc, int descsz)
uint64_t idx;
int bits, i, mode;
- obj_1t1_pt = vm_pager_allocate(OBJT_PHYS, NULL, 1 + NPML4EPG +
- NPML4EPG * NPDPEPG + NPML4EPG * NPDPEPG * NPDEPG,
+ obj_1t1_pt = vm_pager_allocate(OBJT_PHYS, NULL, ptoa(1 +
+ NPML4EPG + NPML4EPG * NPDPEPG + NPML4EPG * NPDPEPG * NPDEPG),
VM_PROT_ALL, 0, NULL);
VM_OBJECT_WLOCK(obj_1t1_pt);
efi_pml4_page = efi_1t1_page(0);
OpenPOWER on IntegriCloud