summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/vm_manager.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-09-24 17:16:17 +0200
committerLioncash <mathew1800@gmail.com>2018-09-25 04:16:03 +0200
commit6c6f95d071b25f2743fcb6652f4389c9e25a7506 (patch)
tree330deda9baa95c5177b680ae2aab355d6f9f1105 /src/core/hle/kernel/vm_manager.h
parentmemory: Dehardcode the use of a 36-bit address space (diff)
downloadyuzu-6c6f95d071b25f2743fcb6652f4389c9e25a7506.tar
yuzu-6c6f95d071b25f2743fcb6652f4389c9e25a7506.tar.gz
yuzu-6c6f95d071b25f2743fcb6652f4389c9e25a7506.tar.bz2
yuzu-6c6f95d071b25f2743fcb6652f4389c9e25a7506.tar.lz
yuzu-6c6f95d071b25f2743fcb6652f4389c9e25a7506.tar.xz
yuzu-6c6f95d071b25f2743fcb6652f4389c9e25a7506.tar.zst
yuzu-6c6f95d071b25f2743fcb6652f4389c9e25a7506.zip
Diffstat (limited to 'src/core/hle/kernel/vm_manager.h')
-rw-r--r--src/core/hle/kernel/vm_manager.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/core/hle/kernel/vm_manager.h b/src/core/hle/kernel/vm_manager.h
index 581bf3d00..015559a64 100644
--- a/src/core/hle/kernel/vm_manager.h
+++ b/src/core/hle/kernel/vm_manager.h
@@ -115,12 +115,6 @@ struct VirtualMemoryArea {
class VMManager final {
public:
/**
- * The maximum amount of address space managed by the kernel.
- * @todo This was selected arbitrarily, and should be verified for Switch OS.
- */
- static constexpr VAddr MAX_ADDRESS{0x1000000000ULL};
-
- /**
* A map covering the entirety of the managed address space, keyed by the `base` field of each
* VMA. It must always be modified by splitting or merging VMAs, so that the invariant
* `elem.base + elem.size == next.base` is preserved, and mergeable regions must always be
@@ -199,10 +193,13 @@ public:
/// Gets the total heap usage, used by svcGetInfo
u64 GetTotalHeapUsage() const;
- /// Gets the address space base address, used by svcGetInfo
- VAddr GetAddressSpaceBaseAddr() const;
+ /// Gets the address space base address
+ VAddr GetAddressSpaceBaseAddress() const;
+
+ /// Gets the address space end address
+ VAddr GetAddressSpaceEndAddress() const;
- /// Gets the total address space address size, used by svcGetInfo
+ /// Gets the total address space address size in bytes
u64 GetAddressSpaceSize() const;
/// Gets the address space width in bits.