summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_page_heap.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-02-13 02:58:31 +0100
committerbunnei <bunneidev@gmail.com>2021-02-19 01:16:25 +0100
commit93e20867b0ab2e737e231a9b5bb29d40947fb311 (patch)
tree84df7c7b56e9c78ce92809328f260edd68ccd490 /src/core/hle/kernel/k_page_heap.h
parenthle: kernel: Migrate MemoryManager to KMemoryManager. (diff)
downloadyuzu-93e20867b0ab2e737e231a9b5bb29d40947fb311.tar
yuzu-93e20867b0ab2e737e231a9b5bb29d40947fb311.tar.gz
yuzu-93e20867b0ab2e737e231a9b5bb29d40947fb311.tar.bz2
yuzu-93e20867b0ab2e737e231a9b5bb29d40947fb311.tar.lz
yuzu-93e20867b0ab2e737e231a9b5bb29d40947fb311.tar.xz
yuzu-93e20867b0ab2e737e231a9b5bb29d40947fb311.tar.zst
yuzu-93e20867b0ab2e737e231a9b5bb29d40947fb311.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/k_page_heap.h (renamed from src/core/hle/kernel/memory/page_heap.h)11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/core/hle/kernel/memory/page_heap.h b/src/core/hle/kernel/k_page_heap.h
index e21d60a54..de5d6a189 100644
--- a/src/core/hle/kernel/memory/page_heap.h
+++ b/src/core/hle/kernel/k_page_heap.h
@@ -2,9 +2,6 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
-// This file references various implementation details from Atmosphere, an open-source firmware for
-// the Nintendo Switch. Copyright 2018-2020 Atmosphere-NX.
-
#pragma once
#include <array>
@@ -18,9 +15,9 @@
#include "core/hle/kernel/k_page_bitmap.h"
#include "core/hle/kernel/memory_types.h"
-namespace Kernel::Memory {
+namespace Kernel {
-class PageHeap final : NonCopyable {
+class KPageHeap final : NonCopyable {
public:
static constexpr s32 GetAlignedBlockIndex(std::size_t num_pages, std::size_t align_pages) {
const auto target_pages{std::max(num_pages, align_pages)};
@@ -148,7 +145,7 @@ private:
};
public:
- PageHeap() = default;
+ KPageHeap() = default;
constexpr VAddr GetAddress() const {
return heap_address;
@@ -193,4 +190,4 @@ private:
std::vector<u64> metadata;
};
-} // namespace Kernel::Memory
+} // namespace Kernel