kern: fix hardware timer task corruption on core migration

This commit is contained in:
Michael Scire 2020-07-25 02:20:36 -07:00
parent 6935929c33
commit fe566cd5f9

View File

@ -115,7 +115,7 @@ namespace ams::kern {
} }
static ALWAYS_INLINE KHardwareTimer &GetHardwareTimer() { static ALWAYS_INLINE KHardwareTimer &GetHardwareTimer() {
return GetCoreLocalContext().hardware_timer; return GetCoreLocalContext(GetCurrentCoreId()).hardware_timer;
} }
static ALWAYS_INLINE KResourceLimit &GetSystemResourceLimit() { static ALWAYS_INLINE KResourceLimit &GetSystemResourceLimit() {