Add support to run SMM handler in TSEG instead of ASEG
[coreboot.git] / src / include / cpu / x86 / tsc.h
index 455cd239fe9c556807af89656db14c8c9284f129..c57362755a5b2afecc1d0d682ddee52302b497e0 100644 (file)
@@ -7,7 +7,7 @@ struct tsc_struct {
 };
 typedef struct tsc_struct tsc_t;
 
-static tsc_t rdtsc(void)
+static inline tsc_t rdtsc(void)
 {
        tsc_t res;
        __asm__ __volatile__ (
@@ -17,16 +17,14 @@ static tsc_t rdtsc(void)
        return res;
 }
 
-#ifndef __ROMCC__
+#if !defined(__ROMCC__)
+/* Too many registers for ROMCC */
 static inline unsigned long long rdtscll(void)
 {
        unsigned long long val;
        asm volatile ("rdtsc" : "=A" (val));
        return val;
 }
-
-void init_timer(void);
 #endif
 
-
 #endif /* CPU_X86_TSC_H */