diff options
| author | 2019-11-30 18:56:35 -0500 | |
|---|---|---|
| committer | 2019-11-30 18:56:35 -0500 | |
| commit | 5c7253f8d3c010c0a0e5c91db497819829cb4a43 (patch) | |
| tree | c2aa6989d3f081c07c72c3ab4a698c73ecd8c429 /src/core/hle/kernel/svc.cpp | |
| parent | Merge pull request #3184 from ReinUsesLisp/framebuffer-cache (diff) | |
| parent | kernel: Implement a more accurate IPC dispatch. (diff) | |
| download | yuzu-5c7253f8d3c010c0a0e5c91db497819829cb4a43.tar.gz yuzu-5c7253f8d3c010c0a0e5c91db497819829cb4a43.tar.xz yuzu-5c7253f8d3c010c0a0e5c91db497819829cb4a43.zip | |
Merge pull request #3177 from bunnei/new-ipc-req
kernel: Implement a more accurate IPC dispatch.
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index db3ae3eb8..bd25de478 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -381,11 +381,12 @@ static ResultCode SendSyncRequest(Core::System& system, Handle handle) { | |||
| 381 | 381 | ||
| 382 | LOG_TRACE(Kernel_SVC, "called handle=0x{:08X}({})", handle, session->GetName()); | 382 | LOG_TRACE(Kernel_SVC, "called handle=0x{:08X}({})", handle, session->GetName()); |
| 383 | 383 | ||
| 384 | system.PrepareReschedule(); | 384 | auto thread = system.CurrentScheduler().GetCurrentThread(); |
| 385 | thread->InvalidateWakeupCallback(); | ||
| 386 | thread->SetStatus(ThreadStatus::WaitIPC); | ||
| 387 | system.PrepareReschedule(thread->GetProcessorID()); | ||
| 385 | 388 | ||
| 386 | // TODO(Subv): svcSendSyncRequest should put the caller thread to sleep while the server | 389 | return session->SendSyncRequest(SharedFrom(thread), system.Memory()); |
| 387 | // responds and cause a reschedule. | ||
| 388 | return session->SendSyncRequest(system.CurrentScheduler().GetCurrentThread(), system.Memory()); | ||
| 389 | } | 390 | } |
| 390 | 391 | ||
| 391 | /// Get the ID for the specified thread. | 392 | /// Get the ID for the specified thread. |