coreboot-kgpe-d16/src/cpu
Aaron Durbin 703aa978aa x86: harden tsc udelay() function
Since the TSC udelay() function can be used in SMM that means the
TSC can count up to whatever value. The current loop was not handling
TSC rollover properly. In most cases this should not matter as the TSC
typically starts ticking at value 0, and it would take a very long time
to roll it over. However, it is my understanding that this behavior is
not guaranteed. Theoretically the TSC could start or be be written to
with a large value that would cause the rollover.

Change-Id: I2f11a5bc4f27d5543e74f8224811fa91e4a55484
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/3171
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
2013-05-07 22:53:08 +02:00
..
amd cpu/amd/agesa/family15tn/Kconfig: Remove unneeded UDELAY_LAPIC 2013-05-03 12:52:11 +02:00
armltd armv7/exynos5250: Deprecate sdelay in favor of udelay 2013-04-17 23:06:40 +02:00
intel haswell: use asmlinkage for assembly-called funcs 2013-05-07 19:39:24 +02:00
samsung exynos5: select HAVE_MONOTONIC_TIMER 2013-05-07 18:35:55 +02:00
via GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
x86 x86: harden tsc udelay() function 2013-05-07 22:53:08 +02:00
Kconfig Minor Kconfig help text fix 2013-04-01 23:27:07 +02:00
Makefile.inc Fix microcode selection code 2013-02-27 21:01:53 +01:00