Go to file
Neil Horman 99f2cdf9ca eal: fix %rbx corruption and simplify the code
Neil Horman reported that on x86-64 the upper half of %rbx would get
clobbered when the code was compiled PIC or PIE, because the
i386-specific code to preserve %ebx was incorrectly compiled.

However, the code is really way more complex than it needs to be.  For
one thing, the CPUID instruction only needs %eax (leaf) and %ecx
(subleaf) as parameters, and since we are testing for bits, we might
as well list the bits explicitly.  Furthermore, we can use an array
rather than doing a switch statement inside a structure.

Reported-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Reviewed-by: H. Peter Anvin <hpa@linux.intel.com>
2014-04-02 14:38:40 +02:00
app get rid of DOS format end of lines 2014-03-20 16:17:57 +01:00
config kvargs: add a new library to parse key/value arguments 2014-02-26 11:01:13 +01:00
doc pcap: revert build patches 2014-03-19 14:33:52 +01:00
examples examples/netmap_compat: import netmap compatibility example 2014-02-26 10:47:59 +01:00
lib eal: fix %rbx corruption and simplify the code 2014-04-02 14:38:40 +02:00
mk mk: fix dependencies when modifying config 2014-03-26 23:10:41 +01:00
scripts update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
tools tools: rename pci_unbind script 2014-03-20 17:50:51 +01:00
.gitignore init DPDK repository 2013-03-07 10:57:42 +01:00
GNUmakefile add FreeBSD support 2014-02-25 21:29:18 +01:00
LICENSE.GPL doc: GPL/LGPL licenses 2013-07-25 14:43:06 +02:00
LICENSE.LGPL doc: fix file format (dos to unix) 2013-09-06 11:43:07 +02:00
Makefile add FreeBSD support 2014-02-25 21:29:18 +01:00