mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 23:02:47 +01:00
kernel: memory: Add memory_types.h, for things that are commonly used in memory code.
This commit is contained in:
parent
d364e7cf09
commit
ea5ee9918e
2 changed files with 19 additions and 0 deletions
|
@ -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
|
||||
|
|
18
src/core/hle/kernel/memory/memory_types.h
Normal file
18
src/core/hle/kernel/memory/memory_types.h
Normal 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
|
Loading…
Reference in a new issue