the following patch was just integrated into master: commit 9b88d41751f692f28014537194087f9ac3c360f8 Author: Duncan Laurie dlaurie@chromium.org Date: Mon Jan 9 22:00:30 2012 -0800
Make cpuid functions usable when compiled with PIC
This avoids using EBX and instead uses EDI where possible, and ESI when necessary to get the EBX value out.
This allows me to enable -fpic for SMM TSEG code.
Also add a new CPUID extended function to query with ECX set.
Change-Id: I10dbded3f3ad98a39ba7b53da59af6ca3145e2e5 Signed-off-by: Duncan Laurie dlaurie@google.com
Build-Tested: build bot (Jenkins) at Fri Mar 30 12:11:24 2012, giving +1 See http://review.coreboot.org/764 for details.
-gerrit