fix physmem mappings
Change-Id: Ie0763e20c36a29a8ef866511903c85027dd133c3 Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
@ -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) ||
|
if ((vpm->flags & VLIB_PHYSMEM_MAIN_F_HAVE_IOMMU) ||
|
||||||
(vpm->flags & VLIB_PHYSMEM_MAIN_F_HAVE_PAGEMAP) == 0)
|
(vpm->flags & VLIB_PHYSMEM_MAIN_F_HAVE_PAGEMAP) == 0)
|
||||||
for (i = 0; i < pr->n_pages; i++)
|
for (i = 0; i < pr->n_pages; i++)
|
||||||
vec_add1 (pr->page_table, pointer_to_uword (pr->mem) +
|
vec_add1 (pr->page_table, pointer_to_uword (pr->mem) +
|
||||||
i * (1 << pr->log2_page_size));
|
i * (1 << pr->log2_page_size));
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
pr->page_table = clib_mem_vm_get_paddr (pr->mem, pr->log2_page_size,
|
pr->page_table = clib_mem_vm_get_paddr (pr->mem, pr->log2_page_size,
|
||||||
pr->n_pages);
|
pr->n_pages);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user