summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2017-07-13 08:23:37 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2017-07-13 08:23:37 +0000
commit60686c37038fddb8e9ab6efc20c7264515bca88c (patch)
tree91d09f1bcfc658b4f7213948c16c30b187092065
parente766a6bb013ddb6cb15784065aa8481cff4d718b (diff)
Notes
-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 56ef03c23f3b..94229db1f9ee 100644
--- a/sys/amd64/amd64/efirt.c
+++ b/sys/amd64/amd64/efirt.c
@@ -194,8 +194,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);