mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-23 10:52:13 +00:00
Add architecture-specific guard for get tick
This commit is contained in:
parent
43bd733f0a
commit
daa0deb1bf
1 changed files with 5 additions and 1 deletions
|
@ -24,7 +24,11 @@ namespace ams::os::impl {
|
|||
|
||||
ALWAYS_INLINE Tick GetTick() const {
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue