summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorGravatar bunnei2022-02-26 10:46:31 -0800
committerGravatar bunnei2022-02-27 18:00:09 -0800
commitf87f076162e6d95cc444e35e086f168e5e6da712 (patch)
treecdf64a251b790ba5b9950e88c4123624b7f4611b /src/core/hle/kernel/kernel.h
parenthle: kernel: k_page_heap: GetPhysicalAddr can be const. (diff)
downloadyuzu-f87f076162e6d95cc444e35e086f168e5e6da712.tar.gz
yuzu-f87f076162e6d95cc444e35e086f168e5e6da712.tar.xz
yuzu-f87f076162e6d95cc444e35e086f168e5e6da712.zip
hle: kernel: k_memory_manager: Rework for latest kernel behavior.
- Updates the KMemoryManager implementation against latest documentation. - Reworks KMemoryLayout to be accessed throughout the kernel. - Fixes an issue with pool sizes being incorrectly reported.
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r--src/core/hle/kernel/kernel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index 0e04fc3bb..c1254b18d 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -41,6 +41,7 @@ class KClientSession;
41class KEvent; 41class KEvent;
42class KHandleTable; 42class KHandleTable;
43class KLinkedListNode; 43class KLinkedListNode;
44class KMemoryLayout;
44class KMemoryManager; 45class KMemoryManager;
45class KPort; 46class KPort;
46class KProcess; 47class KProcess;
@@ -350,6 +351,9 @@ public:
350 /// Gets the current worker task manager, used for dispatching KThread/KProcess tasks. 351 /// Gets the current worker task manager, used for dispatching KThread/KProcess tasks.
351 const KWorkerTaskManager& WorkerTaskManager() const; 352 const KWorkerTaskManager& WorkerTaskManager() const;
352 353
354 /// Gets the memory layout.
355 const KMemoryLayout& MemoryLayout() const;
356
353private: 357private:
354 friend class KProcess; 358 friend class KProcess;
355 friend class KThread; 359 friend class KThread;