kernel/svc: Add request registering

All necessary objects are available here, making this a great place for the registering part.
This commit is contained in:
zhupengfei 2019-07-22 20:17:29 +08:00
parent b093d39a27
commit cb0bd6530c
No known key found for this signature in database
GPG Key ID: DD129E108BD09378

View File

@ -387,7 +387,13 @@ ResultCode SVC::SendSyncRequest(Handle handle) {
system.PrepareReschedule();
return session->SendSyncRequest(SharedFrom(kernel.GetThreadManager().GetCurrentThread()));
auto thread = SharedFrom(kernel.GetThreadManager().GetCurrentThread());
if (kernel.GetIPCRecorder().IsEnabled()) {
kernel.GetIPCRecorder().RegisterRequest(session, thread);
}
return session->SendSyncRequest(thread);
}
/// Close a handle