diff options
| author | 2023-12-06 19:54:52 -0500 | |
|---|---|---|
| committer | 2023-12-07 09:13:43 -0500 | |
| commit | 9268f265a1207f0cddb97a908a1cc349f9b6410b (patch) | |
| tree | 5da6aea714523b3504b78362c5d8abd53689d72f /src/core/hle/kernel/kernel.cpp | |
| parent | Merge pull request #12236 from liamwhite/cpu-refactor (diff) | |
| download | yuzu-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.cpp | 4 |
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(); | |||
| 1407 | template KSlabHeap<KProcess>& KernelCore::SlabHeap(); | 1410 | template KSlabHeap<KProcess>& KernelCore::SlabHeap(); |
| 1408 | template KSlabHeap<KResourceLimit>& KernelCore::SlabHeap(); | 1411 | template KSlabHeap<KResourceLimit>& KernelCore::SlabHeap(); |
| 1409 | template KSlabHeap<KSession>& KernelCore::SlabHeap(); | 1412 | template KSlabHeap<KSession>& KernelCore::SlabHeap(); |
| 1413 | template KSlabHeap<KLightSession>& KernelCore::SlabHeap(); | ||
| 1410 | template KSlabHeap<KSharedMemory>& KernelCore::SlabHeap(); | 1414 | template KSlabHeap<KSharedMemory>& KernelCore::SlabHeap(); |
| 1411 | template KSlabHeap<KSharedMemoryInfo>& KernelCore::SlabHeap(); | 1415 | template KSlabHeap<KSharedMemoryInfo>& KernelCore::SlabHeap(); |
| 1412 | template KSlabHeap<KThread>& KernelCore::SlabHeap(); | 1416 | template KSlabHeap<KThread>& KernelCore::SlabHeap(); |