kernel: memory: Add memory_types.h, for things that are commonly used in memory code.

This commit is contained in:
bunnei 2020-04-05 14:44:26 -04:00
parent d364e7cf09
commit ea5ee9918e
2 changed files with 19 additions and 0 deletions

View file

@ -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