Lines 6-13
Link Here
|
6 |
#include <machine/cpufunc.h> |
6 |
#include <machine/cpufunc.h> |
7 |
-#define __rdtsc rdtsc |
7 |
-#define __rdtsc rdtsc |
8 |
-#if (__ARM_ARCH >= 6) // V6 is the earliest arch that has a standard cyclecount |
8 |
-#if (__ARM_ARCH >= 6) // V6 is the earliest arch that has a standard cyclecount |
|
|
9 |
-unsigned long long rdtsc(void) |
9 |
+#if (__ARM_ARCH >= 6 && __ARM_ARCH <= 7) // V6 is the earliest arch that has a standard cyclecount |
10 |
+#if (__ARM_ARCH >= 6 && __ARM_ARCH <= 7) // V6 is the earliest arch that has a standard cyclecount |
10 |
unsigned long long rdtsc(void) |
11 |
+unsigned long long __rdtsc(void) |
11 |
{ |
12 |
{ |
12 |
uint32_t pmccntr; |
13 |
uint32_t pmccntr; |
13 |
uint32_t pmuseren; |
14 |
uint32_t pmuseren; |
14 |
- |
|
|