summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 11f7d2127..6ebc8c151 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -534,6 +534,12 @@ s32 Thread::GetWaitObjectIndex(WaitObject* object) const {
534 return static_cast<s32>(std::distance(match, wait_objects.rend()) - 1); 534 return static_cast<s32>(std::distance(match, wait_objects.rend()) - 1);
535} 535}
536 536
537VAddr Thread::GetCommandBufferAddress() const {
538 // Offset from the start of TLS at which the IPC command buffer begins.
539 static constexpr int CommandHeaderOffset = 0x80;
540 return GetTLSAddress() + CommandHeaderOffset;
541}
542
537//////////////////////////////////////////////////////////////////////////////////////////////////// 543////////////////////////////////////////////////////////////////////////////////////////////////////
538 544
539void ThreadingInit() { 545void ThreadingInit() {