numam-dpdk/lib/librte_eal
Thomas Monjalon 72c605807a eal: detect endianness
There is no standard to check endianness.
So we need to try different checks.
Previous trials were done in testpmd (see commits
51f694dd40 and 64741f237c) without full success.
This one is not guaranteed to work everywhere so it could
evolve when exceptions are found.

If endianness is not detected, there is a fallback on x86
to little endian. It could be forced before doing detection
but it would add some arch-dependent code in the generic header.

The option CONFIG_RTE_ARCH_BIG_ENDIAN introduced for IBM Power only
(commit a982ec81d8) can be removed. A compile-time check is better.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Chao Zhu <chaozhu@linux.vnet.ibm.com>
Acked-by: Michael Qiu <michael.qiu@intel.com>
2014-12-05 16:55:00 +01:00
..
bsdapp eal/bsd: remove unused HPET support 2014-11-27 16:21:11 +01:00
common eal: detect endianness 2014-12-05 16:55:00 +01:00
linuxapp kni: fix build on IBM Power 2014-12-04 12:59:03 +01:00
Makefile eal: no more bare metal environment 2014-11-27 13:09:51 +01:00