aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/vm_manager.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-04-16 05:07:43 -0400
committerLioncash <mathew1800@gmail.com>2019-04-16 20:02:50 -0400
commitb6a87b422e7a62b578220e4b7e5ef659533c4aae (patch)
tree72ffcf4303003840112938961a236f6e277fb101 /src/core/hle/kernel/vm_manager.h
parent9186f76b07309cb87dfffd19741d9d8c82752e33 (diff)
kernel/vm_manager: Remove usages of global system accessors
Makes the dependency on the system instance explicit within VMManager's interface.
Diffstat (limited to 'src/core/hle/kernel/vm_manager.h')
-rw-r--r--src/core/hle/kernel/vm_manager.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/hle/kernel/vm_manager.h b/src/core/hle/kernel/vm_manager.h
index 288eb9450..ec84d9a70 100644
--- a/src/core/hle/kernel/vm_manager.h
+++ b/src/core/hle/kernel/vm_manager.h
@@ -14,6 +14,10 @@
#include "core/hle/result.h"
#include "core/memory.h"
+namespace Core {
+class System;
+}
+
namespace FileSys {
enum class ProgramAddressSpaceType : u8;
}
@@ -321,7 +325,7 @@ class VMManager final {
public:
using VMAHandle = VMAMap::const_iterator;
- VMManager();
+ explicit VMManager(Core::System& system);
~VMManager();
/// Clears the address space map, re-initializing with a single free area.
@@ -712,5 +716,7 @@ private:
// The end of the currently allocated heap. This is not an inclusive
// end of the range. This is essentially 'base_address + current_size'.
VAddr heap_end = 0;
+
+ Core::System& system;
};
} // namespace Kernel