};
typedef struct tsc_struct tsc_t;
-static tsc_t rdtsc(void)
+static inline tsc_t rdtsc(void)
{
tsc_t res;
__asm__ __volatile__ (
return res;
}
-#ifndef __ROMCC__
+#if !defined(__ROMCC__)
+/* Too many registers for ROMCC */
static inline unsigned long long rdtscll(void)
{
unsigned long long val;
}
#endif
-
#endif /* CPU_X86_TSC_H */