From daa0deb1bfe9167b4195b136d7ab01bfedc612a3 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 16 Mar 2020 01:05:30 -0700 Subject: [PATCH] Add architecture-specific guard for get tick --- .../source/os/impl/os_tick_manager_impl.os.horizon.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/libstratosphere/source/os/impl/os_tick_manager_impl.os.horizon.hpp b/libraries/libstratosphere/source/os/impl/os_tick_manager_impl.os.horizon.hpp index 3a9301cdc..3ab32219b 100644 --- a/libraries/libstratosphere/source/os/impl/os_tick_manager_impl.os.horizon.hpp +++ b/libraries/libstratosphere/source/os/impl/os_tick_manager_impl.os.horizon.hpp @@ -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); }