blob: c4f9e4ea67350b8c198ec5fc70ae7a8e7668237c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#ifndef BASE_PROFILE_ARM_H
#define BASE_PROFILE_ARM_H
#define GetCurrentCPUTime(val) __asm__ volatile("isb; mrs %0, cntvct_el0" : "=r"(val) ::"memory");
#define GetCurrentCPUFreq(val) __asm__ volatile("mrs %0, cntfrq_el0" : "=r"(val));
internal inline u64 ReadCPUTimer();
internal inline u64 ReadCPUTimerFreq();
#endif
|