Kernel/IPC: Added a function to translate the IPC command buffer from one process to another.

Currently only CopyHandle, MoveHandle and CallingPid descriptors are implemented.
This commit is contained in:
Subv 2017-10-01 21:56:43 -05:00
parent b579bf0cc2
commit 7cf7999e02
4 changed files with 110 additions and 1 deletions

14
src/core/hle/kernel/ipc.h Normal file
View file

@ -0,0 +1,14 @@
// Copyright 2017 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include "common/common_types.h"
#include "core/hle/kernel/thread.h"
namespace Kernel {
/// Performs IPC command buffer translation from one process to another.
ResultCode TranslateCommandBuffer(SharedPtr<Thread> src_thread, SharedPtr<Thread> dst_thread,
VAddr src_address, VAddr dst_address);
} // namespace Kernel