diff options
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index 806a0d986..56906f2da 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | #include <vector> | 11 | #include <vector> |
| 12 | #include "core/arm/cpu_interrupt_handler.h" | 12 | #include "core/arm/cpu_interrupt_handler.h" |
| 13 | #include "core/hardware_properties.h" | 13 | #include "core/hardware_properties.h" |
| 14 | #include "core/hle/kernel/memory/memory_types.h" | 14 | #include "core/hle/kernel/memory_types.h" |
| 15 | #include "core/hle/kernel/object.h" | 15 | #include "core/hle/kernel/object.h" |
| 16 | 16 | ||
| 17 | namespace Core { | 17 | namespace Core { |
| @@ -27,25 +27,23 @@ struct EventType; | |||
| 27 | 27 | ||
| 28 | namespace Kernel { | 28 | namespace Kernel { |
| 29 | 29 | ||
| 30 | namespace Memory { | ||
| 31 | class MemoryManager; | ||
| 32 | template <typename T> | ||
| 33 | class SlabHeap; | ||
| 34 | } // namespace Memory | ||
| 35 | |||
| 36 | class ClientPort; | 30 | class ClientPort; |
| 37 | class GlobalSchedulerContext; | 31 | class GlobalSchedulerContext; |
| 38 | class HandleTable; | 32 | class HandleTable; |
| 39 | class PhysicalCore; | 33 | class KMemoryManager; |
| 40 | class Process; | ||
| 41 | class KResourceLimit; | 34 | class KResourceLimit; |
| 42 | class KScheduler; | 35 | class KScheduler; |
| 43 | class SharedMemory; | 36 | class KSharedMemory; |
| 37 | class KThread; | ||
| 38 | class PhysicalCore; | ||
| 39 | class Process; | ||
| 44 | class ServiceThread; | 40 | class ServiceThread; |
| 45 | class Synchronization; | 41 | class Synchronization; |
| 46 | class KThread; | ||
| 47 | class TimeManager; | 42 | class TimeManager; |
| 48 | 43 | ||
| 44 | template <typename T> | ||
| 45 | class KSlabHeap; | ||
| 46 | |||
| 49 | using EmuThreadHandle = uintptr_t; | 47 | using EmuThreadHandle = uintptr_t; |
| 50 | constexpr EmuThreadHandle EmuThreadHandleInvalid{}; | 48 | constexpr EmuThreadHandle EmuThreadHandleInvalid{}; |
| 51 | constexpr EmuThreadHandle EmuThreadHandleReserved{1ULL << 63}; | 49 | constexpr EmuThreadHandle EmuThreadHandleReserved{1ULL << 63}; |
| @@ -178,40 +176,40 @@ public: | |||
| 178 | void RegisterHostThread(); | 176 | void RegisterHostThread(); |
| 179 | 177 | ||
| 180 | /// Gets the virtual memory manager for the kernel. | 178 | /// Gets the virtual memory manager for the kernel. |
| 181 | Memory::MemoryManager& MemoryManager(); | 179 | KMemoryManager& MemoryManager(); |
| 182 | 180 | ||
| 183 | /// Gets the virtual memory manager for the kernel. | 181 | /// Gets the virtual memory manager for the kernel. |
| 184 | const Memory::MemoryManager& MemoryManager() const; | 182 | const KMemoryManager& MemoryManager() const; |
| 185 | 183 | ||
| 186 | /// Gets the slab heap allocated for user space pages. | 184 | /// Gets the slab heap allocated for user space pages. |
| 187 | Memory::SlabHeap<Memory::Page>& GetUserSlabHeapPages(); | 185 | KSlabHeap<Page>& GetUserSlabHeapPages(); |
| 188 | 186 | ||
| 189 | /// Gets the slab heap allocated for user space pages. | 187 | /// Gets the slab heap allocated for user space pages. |
| 190 | const Memory::SlabHeap<Memory::Page>& GetUserSlabHeapPages() const; | 188 | const KSlabHeap<Page>& GetUserSlabHeapPages() const; |
| 191 | 189 | ||
| 192 | /// Gets the shared memory object for HID services. | 190 | /// Gets the shared memory object for HID services. |
| 193 | Kernel::SharedMemory& GetHidSharedMem(); | 191 | Kernel::KSharedMemory& GetHidSharedMem(); |
| 194 | 192 | ||
| 195 | /// Gets the shared memory object for HID services. | 193 | /// Gets the shared memory object for HID services. |
| 196 | const Kernel::SharedMemory& GetHidSharedMem() const; | 194 | const Kernel::KSharedMemory& GetHidSharedMem() const; |
| 197 | 195 | ||
| 198 | /// Gets the shared memory object for font services. | 196 | /// Gets the shared memory object for font services. |
| 199 | Kernel::SharedMemory& GetFontSharedMem(); | 197 | Kernel::KSharedMemory& GetFontSharedMem(); |
| 200 | 198 | ||
| 201 | /// Gets the shared memory object for font services. | 199 | /// Gets the shared memory object for font services. |
| 202 | const Kernel::SharedMemory& GetFontSharedMem() const; | 200 | const Kernel::KSharedMemory& GetFontSharedMem() const; |
| 203 | 201 | ||
| 204 | /// Gets the shared memory object for IRS services. | 202 | /// Gets the shared memory object for IRS services. |
| 205 | Kernel::SharedMemory& GetIrsSharedMem(); | 203 | Kernel::KSharedMemory& GetIrsSharedMem(); |
| 206 | 204 | ||
| 207 | /// Gets the shared memory object for IRS services. | 205 | /// Gets the shared memory object for IRS services. |
| 208 | const Kernel::SharedMemory& GetIrsSharedMem() const; | 206 | const Kernel::KSharedMemory& GetIrsSharedMem() const; |
| 209 | 207 | ||
| 210 | /// Gets the shared memory object for Time services. | 208 | /// Gets the shared memory object for Time services. |
| 211 | Kernel::SharedMemory& GetTimeSharedMem(); | 209 | Kernel::KSharedMemory& GetTimeSharedMem(); |
| 212 | 210 | ||
| 213 | /// Gets the shared memory object for Time services. | 211 | /// Gets the shared memory object for Time services. |
| 214 | const Kernel::SharedMemory& GetTimeSharedMem() const; | 212 | const Kernel::KSharedMemory& GetTimeSharedMem() const; |
| 215 | 213 | ||
| 216 | /// Suspend/unsuspend the OS. | 214 | /// Suspend/unsuspend the OS. |
| 217 | void Suspend(bool in_suspention); | 215 | void Suspend(bool in_suspention); |