the following patch was just integrated into master: commit 15cbbdeaa7f5bf3054595ed0ddd922fa8131aff4 Author: Vladimir Serbinenko phcoder@gmail.com Date: Sun Jan 12 14:28:56 2014 +0100
sandybridge: Use calls rather than asm to call to MRC.
Using asm as it's done currently is unsafe because caller-saved registers are not declared as clobbered.
Using real call is nicer.
regparm((1)) ensures that argument is passed in %eax as expected.
Change-Id: I7449182582eaa53d4e473bc834b472edd8ee0d30 Signed-off-by: Vladimir Serbinenko phcoder@gmail.com
See http://review.coreboot.org/4675 for details.
-gerrit