summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/process.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-12-27 18:31:31 -0500
committerGravatar Lioncash2018-12-27 19:08:47 -0500
commitfbeaa330a35f93857c249aa5f69dfee6b09eefe0 (patch)
treecc9223890f85e66ba61d1b8fe1acfbbb55822f15 /src/core/hle/kernel/process.cpp
parentMerge pull request #1951 from Tinob/master (diff)
downloadyuzu-fbeaa330a35f93857c249aa5f69dfee6b09eefe0.tar.gz
yuzu-fbeaa330a35f93857c249aa5f69dfee6b09eefe0.tar.xz
yuzu-fbeaa330a35f93857c249aa5f69dfee6b09eefe0.zip
kernel/process: Remove most allocation functions from Process' interface
In all cases that these functions are needed, the VMManager can just be retrieved and used instead of providing the same functions in Process' interface. This also makes it a little nicer dependency-wise, since it gets rid of cases where the VMManager interface was being used, and then switched over to using the interface for a Process instance. Instead, it makes all accesses uniform and uses the VMManager instance for all necessary tasks. All the basic memory mapping functions did was forward to the Process' VMManager instance anyways.
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
-rw-r--r--src/core/hle/kernel/process.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp
index 4f209a979..06a673b9b 100644
--- a/src/core/hle/kernel/process.cpp
+++ b/src/core/hle/kernel/process.cpp
@@ -198,22 +198,6 @@ void Process::LoadModule(CodeSet module_, VAddr base_addr) {
198 Core::System::GetInstance().ArmInterface(3).ClearInstructionCache(); 198 Core::System::GetInstance().ArmInterface(3).ClearInstructionCache();
199} 199}
200 200
201ResultVal<VAddr> Process::HeapAllocate(VAddr target, u64 size, VMAPermission perms) {
202 return vm_manager.HeapAllocate(target, size, perms);
203}
204
205ResultCode Process::HeapFree(VAddr target, u32 size) {
206 return vm_manager.HeapFree(target, size);
207}
208
209ResultCode Process::MirrorMemory(VAddr dst_addr, VAddr src_addr, u64 size, MemoryState state) {
210 return vm_manager.MirrorMemory(dst_addr, src_addr, size, state);
211}
212
213ResultCode Process::UnmapMemory(VAddr dst_addr, VAddr /*src_addr*/, u64 size) {
214 return vm_manager.UnmapRange(dst_addr, size);
215}
216
217Kernel::Process::Process(KernelCore& kernel) : WaitObject{kernel} {} 201Kernel::Process::Process(KernelCore& kernel) : WaitObject{kernel} {}
218Kernel::Process::~Process() {} 202Kernel::Process::~Process() {}
219 203