mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-18 17:11:23 +00:00
Add architecture-specific guard for get tick
This commit is contained in:
parent
43bd733f0a
commit
daa0deb1bf
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user