Aaron Durbin (adurbin@chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10187
-gerrit
commit c9354ae0d50300f0fa4e553e2aa7619b8b5262e4 Author: Aaron Durbin adurbin@chromium.org Date: Tue May 12 16:48:31 2015 -0500
x86: expose tsc's timer_monotonic_get() in SMM
The implementation of timer_monotonic_get() for the tsc module was being guarded from SMM. Allow this to be linked into SMM as the generic spi flash driver now needs this support which can be included in SMM.
Change-Id: I3909edecac8de117922c4ea6c53e6e561f6f435b Signed-off-by: Aaron Durbin adurbin@chromium.org --- src/cpu/x86/tsc/delay_tsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cpu/x86/tsc/delay_tsc.c b/src/cpu/x86/tsc/delay_tsc.c index 07a4053..5aaba90 100644 --- a/src/cpu/x86/tsc/delay_tsc.c +++ b/src/cpu/x86/tsc/delay_tsc.c @@ -190,7 +190,7 @@ void udelay(unsigned us) } }
-#if CONFIG_TSC_MONOTONIC_TIMER && !defined(__PRE_RAM__) && !defined(__SMM__) +#if CONFIG_TSC_MONOTONIC_TIMER && !defined(__PRE_RAM__) #include <timer.h>
static struct monotonic_counter {