diff options
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/kernel/k_address_space_info.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/core/hle/kernel/k_address_space_info.cpp b/src/core/hle/kernel/k_address_space_info.cpp index e9f56fbed..eb8af660c 100644 --- a/src/core/hle/kernel/k_address_space_info.cpp +++ b/src/core/hle/kernel/k_address_space_info.cpp | |||
| @@ -5,25 +5,13 @@ | |||
| 5 | #include <array> | 5 | #include <array> |
| 6 | 6 | ||
| 7 | #include "common/assert.h" | 7 | #include "common/assert.h" |
| 8 | #include "common/common_sizes.h" | ||
| 8 | #include "core/hle/kernel/k_address_space_info.h" | 9 | #include "core/hle/kernel/k_address_space_info.h" |
| 9 | 10 | ||
| 10 | namespace Kernel { | 11 | namespace Kernel { |
| 11 | 12 | ||
| 12 | namespace { | 13 | namespace { |
| 13 | 14 | ||
| 14 | enum : u64 { | ||
| 15 | Size_1_MB = 0x100000ULL, | ||
| 16 | Size_2_MB = 2ULL * Size_1_MB, | ||
| 17 | Size_128_MB = 128ULL * Size_1_MB, | ||
| 18 | Size_1_GB = 0x40000000ULL, | ||
| 19 | Size_2_GB = 2ULL * Size_1_GB, | ||
| 20 | Size_4_GB = 4ULL * Size_1_GB, | ||
| 21 | Size_6_GB = 6ULL * Size_1_GB, | ||
| 22 | Size_64_GB = 64ULL * Size_1_GB, | ||
| 23 | Size_512_GB = 512ULL * Size_1_GB, | ||
| 24 | Invalid = std::numeric_limits<u64>::max(), | ||
| 25 | }; | ||
| 26 | |||
| 27 | // clang-format off | 15 | // clang-format off |
| 28 | constexpr std::array<KAddressSpaceInfo, 13> AddressSpaceInfos{{ | 16 | constexpr std::array<KAddressSpaceInfo, 13> AddressSpaceInfos{{ |
| 29 | { .bit_width = 32, .address = Size_2_MB , .size = Size_1_GB - Size_2_MB , .type = KAddressSpaceInfo::Type::MapSmall, }, | 17 | { .bit_width = 32, .address = Size_2_MB , .size = Size_1_GB - Size_2_MB , .type = KAddressSpaceInfo::Type::MapSmall, }, |