diff options
author | bunnei <bunneidev@gmail.com> | 2021-02-13 02:26:01 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-02-19 01:16:25 +0100 |
commit | 93109c870e957d495d24d61d94f7761c72f5624f (patch) | |
tree | 4fabf70f2f4e11f013007935ba61430640535b86 /src/core/hle/kernel/memory/memory_manager.h | |
parent | hle: kernel: Migrate to KMemoryBlock, KMemoryBlockManager, and others. (diff) | |
download | yuzu-93109c870e957d495d24d61d94f7761c72f5624f.tar yuzu-93109c870e957d495d24d61d94f7761c72f5624f.tar.gz yuzu-93109c870e957d495d24d61d94f7761c72f5624f.tar.bz2 yuzu-93109c870e957d495d24d61d94f7761c72f5624f.tar.lz yuzu-93109c870e957d495d24d61d94f7761c72f5624f.tar.xz yuzu-93109c870e957d495d24d61d94f7761c72f5624f.tar.zst yuzu-93109c870e957d495d24d61d94f7761c72f5624f.zip |
Diffstat (limited to 'src/core/hle/kernel/memory/memory_manager.h')
-rw-r--r-- | src/core/hle/kernel/memory/memory_manager.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/hle/kernel/memory/memory_manager.h b/src/core/hle/kernel/memory/memory_manager.h index 80dfbc8c2..d090979bd 100644 --- a/src/core/hle/kernel/memory/memory_manager.h +++ b/src/core/hle/kernel/memory/memory_manager.h @@ -13,9 +13,11 @@ #include "core/hle/kernel/memory/page_heap.h" #include "core/hle/result.h" -namespace Kernel::Memory { +namespace Kernel { +class KPageLinkedList; +} -class PageLinkedList; +namespace Kernel::Memory { class MemoryManager final : NonCopyable { public: @@ -48,9 +50,9 @@ public: void InitializeManager(Pool pool, u64 start_address, u64 end_address); VAddr AllocateAndOpenContinuous(size_t num_pages, size_t align_pages, u32 option); - ResultCode Allocate(PageLinkedList& page_list, std::size_t num_pages, Pool pool, + ResultCode Allocate(KPageLinkedList& page_list, std::size_t num_pages, Pool pool, Direction dir = Direction::FromFront); - ResultCode Free(PageLinkedList& page_list, std::size_t num_pages, Pool pool, + ResultCode Free(KPageLinkedList& page_list, std::size_t num_pages, Pool pool, Direction dir = Direction::FromFront); static constexpr std::size_t MaxManagerCount = 10; |