summaryrefslogtreecommitdiffstats
path: root/source/base/base_profile_arm.h
blob: a28c257e7fafa2ee7214b6362b2880da6d59ba3d (plain) (blame)
1
2
3
4
5
6
7
#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));

#endif