summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/process.h
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.h
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.h')
-rw-r--r--src/core/hle/kernel/process.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h
index 2c0b20f9e..ac6956266 100644
--- a/src/core/hle/kernel/process.h
+++ b/src/core/hle/kernel/process.h
@@ -242,7 +242,7 @@ public:
242 void LoadModule(CodeSet module_, VAddr base_addr); 242 void LoadModule(CodeSet module_, VAddr base_addr);
243 243
244 /////////////////////////////////////////////////////////////////////////////////////////////// 244 ///////////////////////////////////////////////////////////////////////////////////////////////
245 // Memory Management 245 // Thread-local storage management
246 246
247 // Marks the next available region as used and returns the address of the slot. 247 // Marks the next available region as used and returns the address of the slot.
248 VAddr MarkNextAvailableTLSSlotAsUsed(Thread& thread); 248 VAddr MarkNextAvailableTLSSlotAsUsed(Thread& thread);
@@ -250,13 +250,6 @@ public:
250 // Frees a used TLS slot identified by the given address 250 // Frees a used TLS slot identified by the given address
251 void FreeTLSSlot(VAddr tls_address); 251 void FreeTLSSlot(VAddr tls_address);
252 252
253 ResultVal<VAddr> HeapAllocate(VAddr target, u64 size, VMAPermission perms);
254 ResultCode HeapFree(VAddr target, u32 size);
255
256 ResultCode MirrorMemory(VAddr dst_addr, VAddr src_addr, u64 size, MemoryState state);
257
258 ResultCode UnmapMemory(VAddr dst_addr, VAddr src_addr, u64 size);
259
260private: 253private:
261 explicit Process(KernelCore& kernel); 254 explicit Process(KernelCore& kernel);
262 ~Process() override; 255 ~Process() override;