aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-03-07 19:25:51 +0100
committerDamjan Marion <damarion@cisco.com>2018-03-07 19:26:50 +0100
commit8db943000763499764c0fefbf0c237b8345ffe36 (patch)
treeb75dbbe26932348641f2b4bb4259cbf188a7f4b9
parent7dc4d67852772fa42904c41974cb916c7eaafb60 (diff)
fix physmem mappings
Change-Id: Ie0763e20c36a29a8ef866511903c85027dd133c3 Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--src/vlib/linux/physmem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vlib/linux/physmem.c b/src/vlib/linux/physmem.c
index b3703388b84..cf2961b4cf9 100644
--- a/src/vlib/linux/physmem.c
+++ b/src/vlib/linux/physmem.c
@@ -174,12 +174,14 @@ unix_physmem_region_alloc (vlib_main_t * vm, char *name, u32 size,
}
}
+#if 0
if ((vpm->flags & VLIB_PHYSMEM_MAIN_F_HAVE_IOMMU) ||
(vpm->flags & VLIB_PHYSMEM_MAIN_F_HAVE_PAGEMAP) == 0)
for (i = 0; i < pr->n_pages; i++)
vec_add1 (pr->page_table, pointer_to_uword (pr->mem) +
i * (1 << pr->log2_page_size));
else
+#endif
pr->page_table = clib_mem_vm_get_paddr (pr->mem, pr->log2_page_size,
pr->n_pages);