|
|
@ -534,6 +534,12 @@ s32 Thread::GetWaitObjectIndex(WaitObject* object) const {
|
|
|
|
return static_cast<s32>(std::distance(match, wait_objects.rend()) - 1);
|
|
|
|
return static_cast<s32>(std::distance(match, wait_objects.rend()) - 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
VAddr Thread::GetCommandBufferAddress() const {
|
|
|
|
|
|
|
|
// Offset from the start of TLS at which the IPC command buffer begins.
|
|
|
|
|
|
|
|
static constexpr int CommandHeaderOffset = 0x80;
|
|
|
|
|
|
|
|
return GetTLSAddress() + CommandHeaderOffset;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
void ThreadingInit() {
|
|
|
|
void ThreadingInit() {
|
|
|
|