summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2017-07-13 08:23:12 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2017-07-13 08:23:12 +0000
commite766a6bb013ddb6cb15784065aa8481cff4d718b (patch)
treec8caf12534dce9e3f08f65c7f5c52feb0084b3d5
parent89f91fa960736fa5036ece670537203b436e2bd5 (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 94229db1f9ee..56ef03c23f3b 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, ptoa(1 +
- NPML4EPG + NPML4EPG * NPDPEPG + NPML4EPG * NPDPEPG * NPDEPG),
+ obj_1t1_pt = vm_pager_allocate(OBJT_PHYS, NULL, 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);