Merge pull request #2971 from Subv/per_process_memops

Memory: Add overloads for ReadBlock and WriteBlock that operate on a specific process.
This commit is contained in:
Sebastian Valle authored and GitHub committed 2017-10-01 14:44:06 -05:00
commit cbf57de4e5
4 files changed
+61 -22

No files matched your search

+6
View File
@@ -541,6 +541,12 @@ s32 Thread::GetWaitObjectIndex(WaitObject* object) const {
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() {