diff options
| author | 2018-01-02 21:37:56 -0500 | |
|---|---|---|
| committer | 2018-01-02 21:37:56 -0500 | |
| commit | f0eab802e85affe1138e59992cb3969515aa437b (patch) | |
| tree | 9035255003c295790b7cf0944a3389bd9e0b06f2 | |
| parent | svc: Remove unnecessary "svc" prefix to naming scheme. (diff) | |
| download | yuzu-f0eab802e85affe1138e59992cb3969515aa437b.tar.gz yuzu-f0eab802e85affe1138e59992cb3969515aa437b.tar.xz yuzu-f0eab802e85affe1138e59992cb3969515aa437b.zip | |
vm_manager: Use a more reasonable MAX_ADDRESS size.
| -rw-r--r-- | src/core/hle/kernel/vm_manager.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/hle/kernel/vm_manager.h b/src/core/hle/kernel/vm_manager.h index 1f2b129d1..7a7fee54a 100644 --- a/src/core/hle/kernel/vm_manager.h +++ b/src/core/hle/kernel/vm_manager.h | |||
| @@ -102,11 +102,10 @@ struct VirtualMemoryArea { | |||
| 102 | class VMManager final { | 102 | class VMManager final { |
| 103 | public: | 103 | public: |
| 104 | /** | 104 | /** |
| 105 | * The maximum amount of address space managed by the kernel. Addresses above this are never | 105 | * The maximum amount of address space managed by the kernel. |
| 106 | * used. | 106 | * @todo This was selected arbitrarily, and should be verified for Switch OS. |
| 107 | * @note This is the limit used by the New 3DS kernel. Old 3DS used 0x20000000. | ||
| 108 | */ | 107 | */ |
| 109 | static const VAddr MAX_ADDRESS = 0x8000000000; | 108 | static constexpr VAddr MAX_ADDRESS{0x1000000000ULL}; |
| 110 | 109 | ||
| 111 | /** | 110 | /** |
| 112 | * A map covering the entirety of the managed address space, keyed by the `base` field of each | 111 | * A map covering the entirety of the managed address space, keyed by the `base` field of each |
| @@ -239,4 +238,4 @@ private: | |||
| 239 | /// Updates the pages corresponding to this VMA so they match the VMA's attributes. | 238 | /// Updates the pages corresponding to this VMA so they match the VMA's attributes. |
| 240 | void UpdatePageTableForVMA(const VirtualMemoryArea& vma); | 239 | void UpdatePageTableForVMA(const VirtualMemoryArea& vma); |
| 241 | }; | 240 | }; |
| 242 | } | 241 | } // namespace Kernel |