diff options
author | bunnei <bunneidev@gmail.com> | 2020-04-05 20:44:26 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2020-04-17 06:59:29 +0200 |
commit | ea5ee9918e0e678c76f0ee1e791269c8dc7f05f4 (patch) | |
tree | 117bd2fc57a8c8f19bf261cc96b3302052d08ccd /src/core | |
parent | kernel: memory: Add SlabHeap class, for managing memory heaps. (diff) | |
download | yuzu-ea5ee9918e0e678c76f0ee1e791269c8dc7f05f4.tar yuzu-ea5ee9918e0e678c76f0ee1e791269c8dc7f05f4.tar.gz yuzu-ea5ee9918e0e678c76f0ee1e791269c8dc7f05f4.tar.bz2 yuzu-ea5ee9918e0e678c76f0ee1e791269c8dc7f05f4.tar.lz yuzu-ea5ee9918e0e678c76f0ee1e791269c8dc7f05f4.tar.xz yuzu-ea5ee9918e0e678c76f0ee1e791269c8dc7f05f4.tar.zst yuzu-ea5ee9918e0e678c76f0ee1e791269c8dc7f05f4.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/core/hle/kernel/memory/memory_types.h | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 82efb9e21..6875cff27 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -156,6 +156,7 @@ add_library(core STATIC hle/kernel/kernel.h hle/kernel/memory/address_space_info.cpp hle/kernel/memory/address_space_info.h + hle/kernel/memory/memory_types.h hle/kernel/memory/slab_heap.h hle/kernel/mutex.cpp hle/kernel/mutex.h diff --git a/src/core/hle/kernel/memory/memory_types.h b/src/core/hle/kernel/memory/memory_types.h new file mode 100644 index 000000000..a75bf77c0 --- /dev/null +++ b/src/core/hle/kernel/memory/memory_types.h @@ -0,0 +1,18 @@ +// Copyright 2020 yuzu Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include <array> + +#include "common/common_types.h" + +namespace Kernel::Memory { + +constexpr std::size_t PageBits{12}; +constexpr std::size_t PageSize{1 << PageBits}; + +using Page = std::array<u8, PageSize>; + +} // namespace Kernel::Memory |