Memory: move memory setup into MemorySystem
This commit is contained in:
@@ -113,7 +113,7 @@ public:
|
||||
std::map<VAddr, VirtualMemoryArea> vma_map;
|
||||
using VMAHandle = decltype(vma_map)::const_iterator;
|
||||
|
||||
VMManager();
|
||||
explicit VMManager(Memory::MemorySystem& memory);
|
||||
~VMManager();
|
||||
|
||||
/// Clears the address space map, re-initializing with a single free area.
|
||||
@@ -227,5 +227,7 @@ private:
|
||||
|
||||
/// Updates the pages corresponding to this VMA so they match the VMA's attributes.
|
||||
void UpdatePageTableForVMA(const VirtualMemoryArea& vma);
|
||||
|
||||
Memory::MemorySystem& memory;
|
||||
};
|
||||
} // namespace Kernel
|
||||
|
||||
Reference in New Issue
Block a user