diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-27 10:17:27 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-27 10:17:27 +0100 |
commit | 6d351bb326fbaa7372c3b89e782fe8a8ed939602 (patch) | |
tree | 8ba1927b09a35b5ab6afca5435f106022039fc22 /Kernel/MemoryManager.h | |
parent | c4c475b49d98c8ae330a57a2ece95f4e90ef9575 (diff) | |
download | serenity-6d351bb326fbaa7372c3b89e782fe8a8ed939602.zip |
Kernel: Move RAM size detection to MemoryManager and use what we learn.
Diffstat (limited to 'Kernel/MemoryManager.h')
-rw-r--r-- | Kernel/MemoryManager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Kernel/MemoryManager.h b/Kernel/MemoryManager.h index 35ffbbc3f0..bd80937848 100644 --- a/Kernel/MemoryManager.h +++ b/Kernel/MemoryManager.h @@ -222,6 +222,8 @@ public: void remap_region(Process&, Region&); + size_t ram_size() const { return m_ram_size; } + private: MemoryManager(); ~MemoryManager(); @@ -347,6 +349,8 @@ private: HashTable<VMObject*> m_vmos; HashTable<Region*> m_regions; + + size_t m_ram_size { 0 }; }; struct ProcessPagingScope { |