summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
authorGravatar Liam2023-12-06 19:54:52 -0500
committerGravatar Liam2023-12-07 09:13:43 -0500
commit9268f265a1207f0cddb97a908a1cc349f9b6410b (patch)
tree5da6aea714523b3504b78362c5d8abd53689d72f /src/core/hle/kernel/kernel.cpp
parentMerge pull request #12236 from liamwhite/cpu-refactor (diff)
downloadyuzu-9268f265a1207f0cddb97a908a1cc349f9b6410b.tar.gz
yuzu-9268f265a1207f0cddb97a908a1cc349f9b6410b.tar.xz
yuzu-9268f265a1207f0cddb97a908a1cc349f9b6410b.zip
kernel: implement light IPC
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 032c4e093..8cb05ca0b 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -1340,6 +1340,7 @@ struct KernelCore::SlabHeapContainer {
1340 KSlabHeap<KProcess> process; 1340 KSlabHeap<KProcess> process;
1341 KSlabHeap<KResourceLimit> resource_limit; 1341 KSlabHeap<KResourceLimit> resource_limit;
1342 KSlabHeap<KSession> session; 1342 KSlabHeap<KSession> session;
1343 KSlabHeap<KLightSession> light_session;
1343 KSlabHeap<KSharedMemory> shared_memory; 1344 KSlabHeap<KSharedMemory> shared_memory;
1344 KSlabHeap<KSharedMemoryInfo> shared_memory_info; 1345 KSlabHeap<KSharedMemoryInfo> shared_memory_info;
1345 KSlabHeap<KThread> thread; 1346 KSlabHeap<KThread> thread;
@@ -1370,6 +1371,8 @@ KSlabHeap<T>& KernelCore::SlabHeap() {
1370 return slab_heap_container->resource_limit; 1371 return slab_heap_container->resource_limit;
1371 } else if constexpr (std::is_same_v<T, KSession>) { 1372 } else if constexpr (std::is_same_v<T, KSession>) {
1372 return slab_heap_container->session; 1373 return slab_heap_container->session;
1374 } else if constexpr (std::is_same_v<T, KLightSession>) {
1375 return slab_heap_container->light_session;
1373 } else if constexpr (std::is_same_v<T, KSharedMemory>) { 1376 } else if constexpr (std::is_same_v<T, KSharedMemory>) {
1374 return slab_heap_container->shared_memory; 1377 return slab_heap_container->shared_memory;
1375 } else if constexpr (std::is_same_v<T, KSharedMemoryInfo>) { 1378 } else if constexpr (std::is_same_v<T, KSharedMemoryInfo>) {
@@ -1407,6 +1410,7 @@ template KSlabHeap<KPort>& KernelCore::SlabHeap();
1407template KSlabHeap<KProcess>& KernelCore::SlabHeap(); 1410template KSlabHeap<KProcess>& KernelCore::SlabHeap();
1408template KSlabHeap<KResourceLimit>& KernelCore::SlabHeap(); 1411template KSlabHeap<KResourceLimit>& KernelCore::SlabHeap();
1409template KSlabHeap<KSession>& KernelCore::SlabHeap(); 1412template KSlabHeap<KSession>& KernelCore::SlabHeap();
1413template KSlabHeap<KLightSession>& KernelCore::SlabHeap();
1410template KSlabHeap<KSharedMemory>& KernelCore::SlabHeap(); 1414template KSlabHeap<KSharedMemory>& KernelCore::SlabHeap();
1411template KSlabHeap<KSharedMemoryInfo>& KernelCore::SlabHeap(); 1415template KSlabHeap<KSharedMemoryInfo>& KernelCore::SlabHeap();
1412template KSlabHeap<KThread>& KernelCore::SlabHeap(); 1416template KSlabHeap<KThread>& KernelCore::SlabHeap();