mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
vm_manager: Use a more reasonable MAX_ADDRESS size.
This commit is contained in:
parent
81a8a57ce2
commit
f0eab802e8
1 changed files with 4 additions and 5 deletions
|
@ -102,11 +102,10 @@ struct VirtualMemoryArea {
|
||||||
class VMManager final {
|
class VMManager final {
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* The maximum amount of address space managed by the kernel. Addresses above this are never
|
* The maximum amount of address space managed by the kernel.
|
||||||
* used.
|
* @todo This was selected arbitrarily, and should be verified for Switch OS.
|
||||||
* @note This is the limit used by the New 3DS kernel. Old 3DS used 0x20000000.
|
|
||||||
*/
|
*/
|
||||||
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
|
* 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.
|
/// Updates the pages corresponding to this VMA so they match the VMA's attributes.
|
||||||
void UpdatePageTableForVMA(const VirtualMemoryArea& vma);
|
void UpdatePageTableForVMA(const VirtualMemoryArea& vma);
|
||||||
};
|
};
|
||||||
}
|
} // namespace Kernel
|
||||||
|
|
Loading…
Reference in a new issue