Add architecture-specific guard for get tick

This commit is contained in:
Michael Scire 2020-03-16 01:05:30 -07:00
parent 43bd733f0a
commit daa0deb1bf

View File

@ -24,7 +24,11 @@ namespace ams::os::impl {
ALWAYS_INLINE Tick GetTick() const { ALWAYS_INLINE Tick GetTick() const {
s64 tick; s64 tick;
__asm__ __volatile__("mrs %[tick], cntpct_el0" : [tick]"=&r"(tick) :: "memory"); #if defined(ATMOSPHERE_ARCH_ARM64)
__asm__ __volatile__("mrs %[tick], cntpct_el0" : [tick]"=&r"(tick) :: "memory");
#else
#error "Unknown Architecture for TickManagerImpl::GetTick"
#endif
return Tick(tick); return Tick(tick);
} }