summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorGravatar Liam2023-02-16 23:16:08 -0500
committerGravatar Liam2023-02-17 09:16:05 -0500
commit1773a1039f7422df4faac08aa366b6a6bbd645e4 (patch)
tree9560360871f1fcd6c12df2e77452cf37658309d3 /src/core/hle/kernel/kernel.h
parentMerge pull request #9802 from Kelebek1/wait_data_cache (diff)
downloadyuzu-1773a1039f7422df4faac08aa366b6a6bbd645e4.tar.gz
yuzu-1773a1039f7422df4faac08aa366b6a6bbd645e4.tar.xz
yuzu-1773a1039f7422df4faac08aa366b6a6bbd645e4.zip
kernel: add KObjectName
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r--src/core/hle/kernel/kernel.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index a236e6b42..6e0668f7f 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -44,6 +44,8 @@ class KHardwareTimer;
44class KLinkedListNode; 44class KLinkedListNode;
45class KMemoryLayout; 45class KMemoryLayout;
46class KMemoryManager; 46class KMemoryManager;
47class KObjectName;
48class KObjectNameGlobalData;
47class KPageBuffer; 49class KPageBuffer;
48class KPageBufferSlabHeap; 50class KPageBufferSlabHeap;
49class KPort; 51class KPort;
@@ -240,6 +242,9 @@ public:
240 /// Register the current thread as a non CPU core thread. 242 /// Register the current thread as a non CPU core thread.
241 void RegisterHostThread(KThread* existing_thread = nullptr); 243 void RegisterHostThread(KThread* existing_thread = nullptr);
242 244
245 /// Gets global data for KObjectName.
246 KObjectNameGlobalData& ObjectNameGlobalData();
247
243 /// Gets the virtual memory manager for the kernel. 248 /// Gets the virtual memory manager for the kernel.
244 KMemoryManager& MemoryManager(); 249 KMemoryManager& MemoryManager();
245 250
@@ -372,6 +377,8 @@ public:
372 return slab_heap_container->page_buffer; 377 return slab_heap_container->page_buffer;
373 } else if constexpr (std::is_same_v<T, KThreadLocalPage>) { 378 } else if constexpr (std::is_same_v<T, KThreadLocalPage>) {
374 return slab_heap_container->thread_local_page; 379 return slab_heap_container->thread_local_page;
380 } else if constexpr (std::is_same_v<T, KObjectName>) {
381 return slab_heap_container->object_name;
375 } else if constexpr (std::is_same_v<T, KSessionRequest>) { 382 } else if constexpr (std::is_same_v<T, KSessionRequest>) {
376 return slab_heap_container->session_request; 383 return slab_heap_container->session_request;
377 } else if constexpr (std::is_same_v<T, KSecureSystemResource>) { 384 } else if constexpr (std::is_same_v<T, KSecureSystemResource>) {
@@ -443,6 +450,7 @@ private:
443 KSlabHeap<KDeviceAddressSpace> device_address_space; 450 KSlabHeap<KDeviceAddressSpace> device_address_space;
444 KSlabHeap<KPageBuffer> page_buffer; 451 KSlabHeap<KPageBuffer> page_buffer;
445 KSlabHeap<KThreadLocalPage> thread_local_page; 452 KSlabHeap<KThreadLocalPage> thread_local_page;
453 KSlabHeap<KObjectName> object_name;
446 KSlabHeap<KSessionRequest> session_request; 454 KSlabHeap<KSessionRequest> session_request;
447 KSlabHeap<KSecureSystemResource> secure_system_resource; 455 KSlabHeap<KSecureSystemResource> secure_system_resource;
448 KSlabHeap<KEventInfo> event_info; 456 KSlabHeap<KEventInfo> event_info;