2022-04-23 10:59:50 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-04-05 20:44:26 +02:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <array>
|
|
|
|
|
|
|
|
#include "common/common_types.h"
|
|
|
|
|
2021-02-13 02:02:51 +01:00
|
|
|
namespace Kernel {
|
2020-04-05 20:44:26 +02:00
|
|
|
|
|
|
|
constexpr std::size_t PageBits{12};
|
|
|
|
constexpr std::size_t PageSize{1 << PageBits};
|
|
|
|
|
|
|
|
using Page = std::array<u8, PageSize>;
|
|
|
|
|
2023-01-08 00:32:10 +01:00
|
|
|
using KPhysicalAddress = PAddr;
|
|
|
|
using KProcessAddress = VAddr;
|
|
|
|
|
2021-02-13 02:02:51 +01:00
|
|
|
} // namespace Kernel
|