From: David Marchand Date: Mon, 24 Nov 2014 15:18:51 +0000 (+0100) Subject: eal/linux: fix remaining checks for 64-bit architectures X-Git-Tag: spdx-start~10035 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=63dd47b9a5fe097190ae6b690806675504fca228;p=dpdk.git eal/linux: fix remaining checks for 64-bit architectures RTE_ARCH_X86_64 can not be used as a way to determine if we are building for 64bits cpus. Instead, RTE_ARCH_64 should be used. Signed-off-by: David Marchand Acked-by: Chao Zhu --- diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index 1d1fbdd3a8..89f3b5eaad 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -448,7 +448,7 @@ eal_parse_base_virtaddr(const char *arg) return -1; /* make sure we don't exceed 32-bit boundary on 32-bit target */ -#ifndef RTE_ARCH_X86_64 +#ifndef RTE_ARCH_64 if (addr >= UINTPTR_MAX) return -1; #endif diff --git a/lib/librte_eal/linuxapp/eal/eal_hugepage_info.c b/lib/librte_eal/linuxapp/eal/eal_hugepage_info.c index 73d1cdb757..590cb56591 100644 --- a/lib/librte_eal/linuxapp/eal/eal_hugepage_info.c +++ b/lib/librte_eal/linuxapp/eal/eal_hugepage_info.c @@ -324,7 +324,7 @@ eal_hugepage_info_init(void) * later they will be sorted */ hpi->num_pages[0] = get_num_hugepages(dirent->d_name); -#ifndef RTE_ARCH_X86_64 +#ifndef RTE_ARCH_64 /* for 32-bit systems, limit number of hugepages to 1GB per page size */ hpi->num_pages[0] = RTE_MIN(hpi->num_pages[0], RTE_PGSIZE_1G / hpi->hugepage_sz);