aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/linux/mem.c
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2018-08-24 17:21:14 -0400
committerDamjan Marion <dmarion@me.com>2018-08-28 18:05:16 +0000
commit9466c45ceed735b0fc2820f0444ba0dfea03a8f1 (patch)
tree3ee1b355492659ceb0201715188b03f11a6a1ed0 /src/vppinfra/linux/mem.c
parent4638e94ac3993b93144874edee247cf327a6d65f (diff)
32/64 shmem bihash interoperability
Move the binary api segment above 4gb Change-Id: I40e8aa7a97722a32397f5a538b5ff8344c50d408 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vppinfra/linux/mem.c')
-rw-r--r--src/vppinfra/linux/mem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vppinfra/linux/mem.c b/src/vppinfra/linux/mem.c
index e4740ad1d3b..bceb3b217b7 100644
--- a/src/vppinfra/linux/mem.c
+++ b/src/vppinfra/linux/mem.c
@@ -46,7 +46,7 @@
#define F_SEAL_WRITE 0x0008 /* prevent writes */
#endif
-uword
+u64
clib_mem_vm_get_page_size (int fd)
{
struct stat st = { 0 };
@@ -87,7 +87,7 @@ clib_mem_vm_ext_alloc (clib_mem_vm_alloc_t * a)
int log2_page_size;
int n_pages;
int old_mpol = -1;
- u64 old_mask[16] = { 0 };
+ long unsigned int old_mask[16] = { 0 };
/* save old numa mem policy if needed */
if (a->flags & (CLIB_MEM_VM_F_NUMA_PREFER | CLIB_MEM_VM_F_NUMA_FORCE))
@@ -210,7 +210,7 @@ clib_mem_vm_ext_alloc (clib_mem_vm_alloc_t * a)
if (old_mpol != -1)
{
int rv;
- u64 mask[16] = { 0 };
+ long unsigned int mask[16] = { 0 };
mask[0] = 1 << a->numa_node;
rv = set_mempolicy (MPOL_BIND, mask, sizeof (mask) * 8 + 1);
if (rv == -1 && a->numa_node != 0 &&