From f0eab802e85affe1138e59992cb3969515aa437b Mon Sep 17 00:00:00 2001 From: bunnei Date: Tue, 2 Jan 2018 21:37:56 -0500 Subject: [PATCH] vm_manager: Use a more reasonable MAX_ADDRESS size. --- src/core/hle/kernel/vm_manager.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/core/hle/kernel/vm_manager.h b/src/core/hle/kernel/vm_manager.h index 1f2b129d1d..7a7fee54a9 100644 --- a/src/core/hle/kernel/vm_manager.h +++ b/src/core/hle/kernel/vm_manager.h @@ -102,11 +102,10 @@ struct VirtualMemoryArea { class VMManager final { public: /** - * The maximum amount of address space managed by the kernel. Addresses above this are never - * used. - * @note This is the limit used by the New 3DS kernel. Old 3DS used 0x20000000. + * The maximum amount of address space managed by the kernel. + * @todo This was selected arbitrarily, and should be verified for Switch OS. */ - static const VAddr MAX_ADDRESS = 0x8000000000; + static constexpr VAddr MAX_ADDRESS{0x1000000000ULL}; /** * A map covering the entirety of the managed address space, keyed by the `base` field of each @@ -239,4 +238,4 @@ private: /// Updates the pages corresponding to this VMA so they match the VMA's attributes. void UpdatePageTableForVMA(const VirtualMemoryArea& vma); }; -} +} // namespace Kernel