eal: deduplicate memory initialization
authorRavi Kerur <rkerur@gmail.com>
Sat, 25 Jul 2015 19:36:29 +0000 (12:36 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Jul 2015 00:46:56 +0000 (02:46 +0200)
commitd12b6da14bfa910fbd5b9b51961eb26466302d24
tree8e4dabaf6144cbbb01e0c26fefba2725d6b07bb4
parent040cf8a4118787e6cd3963ed5fee1539f837c375
eal: deduplicate memory initialization

Move common functions from BSD/Linux to eal_common_memory.c file.
BSD uses contigmem kernel module and Linux uses /proc/self/pagemap file.

Signed-off-by: Ravi Kerur <rkerur@gmail.com>
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/bsdapp/eal/eal_memory.c
lib/librte_eal/common/eal_common_memory.c
lib/librte_eal/common/eal_private.h
lib/librte_eal/linuxapp/eal/eal_memory.c