summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2023-02-18 22:22:50 +0100
committerGitHub <noreply@github.com>2023-02-18 22:22:50 +0100
commit41183b622f2acc821f2c9b213f01029b33a993e5 (patch)
tree51b4bf463e3273df6badb65043a1186459680266 /src/core/hle/kernel/kernel.h
parentMerge pull request #9810 from Kelebek1/nvdec_threads (diff)
parentkernel: add KObjectName (diff)
downloadyuzu-41183b622f2acc821f2c9b213f01029b33a993e5.tar
yuzu-41183b622f2acc821f2c9b213f01029b33a993e5.tar.gz
yuzu-41183b622f2acc821f2c9b213f01029b33a993e5.tar.bz2
yuzu-41183b622f2acc821f2c9b213f01029b33a993e5.tar.lz
yuzu-41183b622f2acc821f2c9b213f01029b33a993e5.tar.xz
yuzu-41183b622f2acc821f2c9b213f01029b33a993e5.tar.zst
yuzu-41183b622f2acc821f2c9b213f01029b33a993e5.zip
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;
class KLinkedListNode;
class KMemoryLayout;
class KMemoryManager;
+class KObjectName;
+class KObjectNameGlobalData;
class KPageBuffer;
class KPageBufferSlabHeap;
class KPort;
@@ -240,6 +242,9 @@ public:
/// Register the current thread as a non CPU core thread.
void RegisterHostThread(KThread* existing_thread = nullptr);
+ /// Gets global data for KObjectName.
+ KObjectNameGlobalData& ObjectNameGlobalData();
+
/// Gets the virtual memory manager for the kernel.
KMemoryManager& MemoryManager();
@@ -372,6 +377,8 @@ public:
return slab_heap_container->page_buffer;
} else if constexpr (std::is_same_v<T, KThreadLocalPage>) {
return slab_heap_container->thread_local_page;
+ } else if constexpr (std::is_same_v<T, KObjectName>) {
+ return slab_heap_container->object_name;
} else if constexpr (std::is_same_v<T, KSessionRequest>) {
return slab_heap_container->session_request;
} else if constexpr (std::is_same_v<T, KSecureSystemResource>) {
@@ -443,6 +450,7 @@ private:
KSlabHeap<KDeviceAddressSpace> device_address_space;
KSlabHeap<KPageBuffer> page_buffer;
KSlabHeap<KThreadLocalPage> thread_local_page;
+ KSlabHeap<KObjectName> object_name;
KSlabHeap<KSessionRequest> session_request;
KSlabHeap<KSecureSystemResource> secure_system_resource;
KSlabHeap<KEventInfo> event_info;