diff options
author | Liam <byteslice@airmail.cc> | 2022-06-16 16:35:52 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-06-23 06:28:00 +0200 |
commit | 2c56e94702e897c609711d82057d8267d8f4d0b3 (patch) | |
tree | b037c6951383408517b460577b709f4383a61da0 /src/core/hle/kernel/k_interrupt_manager.cpp | |
parent | Merge pull request #8491 from Morph1984/extra-assert (diff) | |
download | yuzu-2c56e94702e897c609711d82057d8267d8f4d0b3.tar yuzu-2c56e94702e897c609711d82057d8267d8f4d0b3.tar.gz yuzu-2c56e94702e897c609711d82057d8267d8f4d0b3.tar.bz2 yuzu-2c56e94702e897c609711d82057d8267d8f4d0b3.tar.lz yuzu-2c56e94702e897c609711d82057d8267d8f4d0b3.tar.xz yuzu-2c56e94702e897c609711d82057d8267d8f4d0b3.tar.zst yuzu-2c56e94702e897c609711d82057d8267d8f4d0b3.zip |
Diffstat (limited to 'src/core/hle/kernel/k_interrupt_manager.cpp')
-rw-r--r-- | src/core/hle/kernel/k_interrupt_manager.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/kernel/k_interrupt_manager.cpp b/src/core/hle/kernel/k_interrupt_manager.cpp index cf9ed80d0..d606a7f86 100644 --- a/src/core/hle/kernel/k_interrupt_manager.cpp +++ b/src/core/hle/kernel/k_interrupt_manager.cpp @@ -15,8 +15,7 @@ void HandleInterrupt(KernelCore& kernel, s32 core_id) { return; } - auto& scheduler = kernel.Scheduler(core_id); - auto& current_thread = *scheduler.GetCurrentThread(); + auto& current_thread = GetCurrentThread(kernel); // If the user disable count is set, we may need to pin the current thread. if (current_thread.GetUserDisableCount() && !process->GetPinnedThread(core_id)) { @@ -26,7 +25,7 @@ void HandleInterrupt(KernelCore& kernel, s32 core_id) { process->PinCurrentThread(core_id); // Set the interrupt flag for the thread. - scheduler.GetCurrentThread()->SetInterruptFlag(); + GetCurrentThread(kernel).SetInterruptFlag(); } } |