Preserve %ebx across CPUID when using PIE (thanks Faustus, Anthony Basile from Gentoo).
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 17 Mar 2012 10:32:39 +0000 (10:32 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 31 Oct 2016 10:13:08 +0000 (06:13 -0400)
commit2065168e8b4bba4fec4e4b0fae69e373f50f8382
treebe4c3d3ea979e08f998c586b9644154e477ce871
parent60a7ee0f70ea79610e852986f2732d571ee49fba
Preserve %ebx across CPUID when using PIE (thanks Faustus, Anthony Basile from Gentoo).

PIE on i686 uses %ebx as a base register.  Don't clobber it across the
CPUID instruction.

https://bugs.gentoo.org/show_bug.cgi?id=341271
https://bugzilla.redhat.com/show_bug.cgi?id=804282
(cherry picked from commit 53cf9493343e34b09622a544c84957d60d50c038)
virt-what-cpuid-helper.c