Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
7dc4d67
)
fix physmem mappings
19/11019/1
author
Damjan Marion
<damarion@cisco.com>
Wed, 7 Mar 2018 18:25:51 +0000
(19:25 +0100)
committer
Damjan Marion
<damarion@cisco.com>
Wed, 7 Mar 2018 18:26:50 +0000
(19:26 +0100)
Change-Id: Ie0763e20c36a29a8ef866511903c85027dd133c3
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vlib/linux/physmem.c
patch
|
blob
|
history
diff --git
a/src/vlib/linux/physmem.c
b/src/vlib/linux/physmem.c
index
b370338
..
cf2961b
100644
(file)
--- 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);