From ea5ee9918e0e678c76f0ee1e791269c8dc7f05f4 Mon Sep 17 00:00:00 2001 From: bunnei Date: Sun, 5 Apr 2020 14:44:26 -0400 Subject: kernel: memory: Add memory_types.h, for things that are commonly used in memory code. --- src/core/hle/kernel/memory/memory_types.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/core/hle/kernel/memory/memory_types.h (limited to 'src/core/hle/kernel/memory') 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 + +#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; + +} // namespace Kernel::Memory -- cgit v1.2.3