summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_interrupt_manager.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-07-25 18:00:31 +0200
committerGitHub <noreply@github.com>2022-07-25 18:00:31 +0200
commit591d1f1b09d2af6e432d4fb27af3321919758c0c (patch)
tree5b0efec541b5db56b7d32e6c90f1b2587c71611d /src/core/hle/kernel/k_interrupt_manager.cpp
parentMerge pull request #8484 from german77/irs_release (diff)
parentkernel: Ensure all uses of disable_count are balanced (diff)
downloadyuzu-591d1f1b09d2af6e432d4fb27af3321919758c0c.tar
yuzu-591d1f1b09d2af6e432d4fb27af3321919758c0c.tar.gz
yuzu-591d1f1b09d2af6e432d4fb27af3321919758c0c.tar.bz2
yuzu-591d1f1b09d2af6e432d4fb27af3321919758c0c.tar.lz
yuzu-591d1f1b09d2af6e432d4fb27af3321919758c0c.tar.xz
yuzu-591d1f1b09d2af6e432d4fb27af3321919758c0c.tar.zst
yuzu-591d1f1b09d2af6e432d4fb27af3321919758c0c.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/k_interrupt_manager.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_interrupt_manager.cpp b/src/core/hle/kernel/k_interrupt_manager.cpp
index d606a7f86..1b577a5b3 100644
--- a/src/core/hle/kernel/k_interrupt_manager.cpp
+++ b/src/core/hle/kernel/k_interrupt_manager.cpp
@@ -6,6 +6,7 @@
#include "core/hle/kernel/k_scheduler.h"
#include "core/hle/kernel/k_thread.h"
#include "core/hle/kernel/kernel.h"
+#include "core/hle/kernel/physical_core.h"
namespace Kernel::KInterruptManager {
@@ -15,6 +16,9 @@ void HandleInterrupt(KernelCore& kernel, s32 core_id) {
return;
}
+ // Acknowledge the interrupt.
+ kernel.PhysicalCore(core_id).ClearInterrupt();
+
auto& current_thread = GetCurrentThread(kernel);
// If the user disable count is set, we may need to pin the current thread.
@@ -27,6 +31,9 @@ void HandleInterrupt(KernelCore& kernel, s32 core_id) {
// Set the interrupt flag for the thread.
GetCurrentThread(kernel).SetInterruptFlag();
}
+
+ // Request interrupt scheduling.
+ kernel.CurrentScheduler()->RequestScheduleOnInterrupt();
}
} // namespace Kernel::KInterruptManager