diff options
| author | 2022-10-19 16:27:43 -0400 | |
|---|---|---|
| committer | 2022-10-19 16:27:43 -0400 | |
| commit | 560bca57a203c45acb1c589699b472223e8b68fd (patch) | |
| tree | 98ef4a0d62a368614075463d13c4220b11af9760 /src/core/hle/kernel/kernel.h | |
| parent | Merge pull request #9084 from vonchenplus/dma_copy (diff) | |
| parent | core: hle: kernel: Migrate ProcessState to enum class. (diff) | |
| download | yuzu-560bca57a203c45acb1c589699b472223e8b68fd.tar.gz yuzu-560bca57a203c45acb1c589699b472223e8b68fd.tar.xz yuzu-560bca57a203c45acb1c589699b472223e8b68fd.zip | |
Merge pull request #9071 from bunnei/mp-mm
Kernel Multiprocess (Part 1) - Persist memory & core timing
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index 0847cbcbf..6eded9539 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h | |||
| @@ -37,6 +37,7 @@ class KClientSession; | |||
| 37 | class KEvent; | 37 | class KEvent; |
| 38 | class KHandleTable; | 38 | class KHandleTable; |
| 39 | class KLinkedListNode; | 39 | class KLinkedListNode; |
| 40 | class KMemoryBlockSlabManager; | ||
| 40 | class KMemoryLayout; | 41 | class KMemoryLayout; |
| 41 | class KMemoryManager; | 42 | class KMemoryManager; |
| 42 | class KPageBuffer; | 43 | class KPageBuffer; |
| @@ -130,6 +131,9 @@ public: | |||
| 130 | /// Retrieves a const pointer to the current process. | 131 | /// Retrieves a const pointer to the current process. |
| 131 | const KProcess* CurrentProcess() const; | 132 | const KProcess* CurrentProcess() const; |
| 132 | 133 | ||
| 134 | /// Closes the current process. | ||
| 135 | void CloseCurrentProcess(); | ||
| 136 | |||
| 133 | /// Retrieves the list of processes. | 137 | /// Retrieves the list of processes. |
| 134 | const std::vector<KProcess*>& GetProcessList() const; | 138 | const std::vector<KProcess*>& GetProcessList() const; |
| 135 | 139 | ||
| @@ -238,6 +242,12 @@ public: | |||
| 238 | /// Gets the virtual memory manager for the kernel. | 242 | /// Gets the virtual memory manager for the kernel. |
| 239 | const KMemoryManager& MemoryManager() const; | 243 | const KMemoryManager& MemoryManager() const; |
| 240 | 244 | ||
| 245 | /// Gets the application memory block manager for the kernel. | ||
| 246 | KMemoryBlockSlabManager& GetApplicationMemoryBlockManager(); | ||
| 247 | |||
| 248 | /// Gets the application memory block manager for the kernel. | ||
| 249 | const KMemoryBlockSlabManager& GetApplicationMemoryBlockManager() const; | ||
| 250 | |||
| 241 | /// Gets the shared memory object for HID services. | 251 | /// Gets the shared memory object for HID services. |
| 242 | Kernel::KSharedMemory& GetHidSharedMem(); | 252 | Kernel::KSharedMemory& GetHidSharedMem(); |
| 243 | 253 | ||