diff options
author | german77 <juangerman-13@hotmail.com> | 2022-06-26 06:15:31 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2022-06-27 03:21:45 +0200 |
commit | 7b48e7b363245fd88685f70c0ea39b4374688e3c (patch) | |
tree | 4ce180cfc395947bf2b09f039e39beea171e22ad /src/core/hle/kernel/k_memory_manager.h | |
parent | core: Replace all instances of ResultCode with Result (diff) | |
download | yuzu-7b48e7b363245fd88685f70c0ea39b4374688e3c.tar yuzu-7b48e7b363245fd88685f70c0ea39b4374688e3c.tar.gz yuzu-7b48e7b363245fd88685f70c0ea39b4374688e3c.tar.bz2 yuzu-7b48e7b363245fd88685f70c0ea39b4374688e3c.tar.lz yuzu-7b48e7b363245fd88685f70c0ea39b4374688e3c.tar.xz yuzu-7b48e7b363245fd88685f70c0ea39b4374688e3c.tar.zst yuzu-7b48e7b363245fd88685f70c0ea39b4374688e3c.zip |
Diffstat (limited to 'src/core/hle/kernel/k_memory_manager.h')
-rw-r--r-- | src/core/hle/kernel/k_memory_manager.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/hle/kernel/k_memory_manager.h b/src/core/hle/kernel/k_memory_manager.h index 1ebda7a4b..dcb9b6348 100644 --- a/src/core/hle/kernel/k_memory_manager.h +++ b/src/core/hle/kernel/k_memory_manager.h @@ -19,7 +19,7 @@ class System; namespace Kernel { -class KPageLinkedList; +class KPageGroup; class KMemoryManager final { public: @@ -65,17 +65,17 @@ public: } PAddr AllocateAndOpenContinuous(size_t num_pages, size_t align_pages, u32 option); - Result AllocateAndOpen(KPageLinkedList* out, size_t num_pages, u32 option); - Result AllocateAndOpenForProcess(KPageLinkedList* out, size_t num_pages, u32 option, - u64 process_id, u8 fill_pattern); + Result AllocateAndOpen(KPageGroup* out, size_t num_pages, u32 option); + Result AllocateAndOpenForProcess(KPageGroup* out, size_t num_pages, u32 option, u64 process_id, + u8 fill_pattern); static constexpr size_t MaxManagerCount = 10; void Close(PAddr address, size_t num_pages); - void Close(const KPageLinkedList& pg); + void Close(const KPageGroup& pg); void Open(PAddr address, size_t num_pages); - void Open(const KPageLinkedList& pg); + void Open(const KPageGroup& pg); public: static size_t CalculateManagementOverheadSize(size_t region_size) { @@ -262,7 +262,7 @@ private: } } - Result AllocatePageGroupImpl(KPageLinkedList* out, size_t num_pages, Pool pool, Direction dir, + Result AllocatePageGroupImpl(KPageGroup* out, size_t num_pages, Pool pool, Direction dir, bool random); private: |