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:
parent
b093d39a27
commit
cb0bd6530c
|
@ -387,7 +387,13 @@ ResultCode SVC::SendSyncRequest(Handle handle) {
|
||||||
|
|
||||||
system.PrepareReschedule();
|
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
|
/// Close a handle
|
||||||
|
|
Reference in New Issue