mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-28 14:02:40 +02:00
Add architecture-specific guard for get tick
This commit is contained in:
parent
8bcf34a172
commit
45b839ec3a
@ -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 New Issue
Block a user