Add support to run SMM handler in TSEG instead of ASEG
[coreboot.git] / src / include / cpu / x86 / tsc.h
index 96afaa6e7d02a7450343efb658956d38a7215b2d..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,7 +17,8 @@ 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;
@@ -26,5 +27,4 @@ static inline unsigned long long rdtscll(void)
 }
 #endif
 
-
 #endif /* CPU_X86_TSC_H */