From a4d376cc0fded63b78e8f0f243a0106892fb97d3 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sat, 25 Jul 2020 02:20:36 -0700 Subject: [PATCH] kern: fix hardware timer task corruption on core migration --- libraries/libmesosphere/include/mesosphere/kern_kernel.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libmesosphere/include/mesosphere/kern_kernel.hpp b/libraries/libmesosphere/include/mesosphere/kern_kernel.hpp index 21980a083..eb98eaa9c 100644 --- a/libraries/libmesosphere/include/mesosphere/kern_kernel.hpp +++ b/libraries/libmesosphere/include/mesosphere/kern_kernel.hpp @@ -115,7 +115,7 @@ namespace ams::kern { } static ALWAYS_INLINE KHardwareTimer &GetHardwareTimer() { - return GetCoreLocalContext().hardware_timer; + return GetCoreLocalContext(GetCurrentCoreId()).hardware_timer; } static ALWAYS_INLINE KResourceLimit &GetSystemResourceLimit() {