coreboot-kgpe-d16/src/include/cpu
Stefan Reinauer 0db6820b10 Synchronize rdtsc instructions
The CPU can arbitrarily reorder calls to rdtsc, significantly
reducing the precision of timing using the CPUs time stamp counter.
Unfortunately the method of synchronizing rdtsc is different
on AMD and Intel CPUs. There is a generic method, using the cpuid
instruction, but that uses up a lot of registers, and is very slow.
Hence, use the correct lfence/mfence instructions (for CPUs that
we know support it)

Change-Id: I17ecb48d283f38f23148c13159aceda704c64ea5
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/1422
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Tested-by: build bot (Jenkins)
2012-08-09 00:38:39 +02:00
..
amd AGESA F15 wrapper for Trinity 2012-07-03 09:38:55 +02:00
intel Add code to read Intel microcode from CBFS 2012-07-24 22:15:19 +02:00
x86 Synchronize rdtsc instructions 2012-08-09 00:38:39 +02:00
cpu.h Move cpus_ready_for_init() to AMD K8 2012-08-07 06:40:41 +02:00