summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-01-01 18:12:01 +0100
committerbunnei <bunneidev@gmail.com>2023-06-03 09:05:28 +0200
commit7cdeaa90afc4e333af75262df1504aed05767509 (patch)
treeb18694c3293ba1f0264c77e4952362de64052ca4 /src/core/hle/kernel
parentvideo_core: vulkan_device: Device initialization for Adreno. (diff)
downloadyuzu-7cdeaa90afc4e333af75262df1504aed05767509.tar
yuzu-7cdeaa90afc4e333af75262df1504aed05767509.tar.gz
yuzu-7cdeaa90afc4e333af75262df1504aed05767509.tar.bz2
yuzu-7cdeaa90afc4e333af75262df1504aed05767509.tar.lz
yuzu-7cdeaa90afc4e333af75262df1504aed05767509.tar.xz
yuzu-7cdeaa90afc4e333af75262df1504aed05767509.tar.zst
yuzu-7cdeaa90afc4e333af75262df1504aed05767509.zip
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/k_address_space_info.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_address_space_info.cpp b/src/core/hle/kernel/k_address_space_info.cpp
index c36eb5dc4..32173e52b 100644
--- a/src/core/hle/kernel/k_address_space_info.cpp
+++ b/src/core/hle/kernel/k_address_space_info.cpp
@@ -25,7 +25,12 @@ constexpr std::array<KAddressSpaceInfo, 13> AddressSpaceInfos{{
{ .bit_width = 36, .address = 2_GiB , .size = 64_GiB - 2_GiB , .type = KAddressSpaceInfo::Type::MapLarge, },
{ .bit_width = 36, .address = Size_Invalid, .size = 8_GiB , .type = KAddressSpaceInfo::Type::Heap, },
{ .bit_width = 36, .address = Size_Invalid, .size = 6_GiB , .type = KAddressSpaceInfo::Type::Alias, },
+#ifdef ANDROID
+ // With Android, we use a 38-bit address space due to memory limitations. This should (safely) truncate ASLR region.
+ { .bit_width = 39, .address = 128_MiB , .size = 256_GiB - 128_MiB, .type = KAddressSpaceInfo::Type::Map39Bit, },
+#else
{ .bit_width = 39, .address = 128_MiB , .size = 512_GiB - 128_MiB, .type = KAddressSpaceInfo::Type::Map39Bit, },
+#endif
{ .bit_width = 39, .address = Size_Invalid, .size = 64_GiB , .type = KAddressSpaceInfo::Type::MapSmall },
{ .bit_width = 39, .address = Size_Invalid, .size = 8_GiB , .type = KAddressSpaceInfo::Type::Heap, },
{ .bit_width = 39, .address = Size_Invalid, .size = 64_GiB , .type = KAddressSpaceInfo::Type::Alias, },