[Core] Memory::GetPhysicalHeap
This commit is contained in:
parent
5a637d6899
commit
4db94473ec
|
@ -337,6 +337,8 @@ BaseHeap* Memory::LookupHeapByType(bool physical, uint32_t page_size) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VirtualHeap* Memory::GetPhysicalHeap() { return &heaps_.physical; }
|
||||||
|
|
||||||
void Memory::Zero(uint32_t address, uint32_t size) {
|
void Memory::Zero(uint32_t address, uint32_t size) {
|
||||||
std::memset(TranslateVirtual(address), 0, size);
|
std::memset(TranslateVirtual(address), 0, size);
|
||||||
}
|
}
|
||||||
|
|
|
@ -332,6 +332,9 @@ class Memory {
|
||||||
// Gets the heap with the given properties.
|
// Gets the heap with the given properties.
|
||||||
BaseHeap* LookupHeapByType(bool physical, uint32_t page_size);
|
BaseHeap* LookupHeapByType(bool physical, uint32_t page_size);
|
||||||
|
|
||||||
|
// Gets the physical base heap.
|
||||||
|
VirtualHeap* GetPhysicalHeap();
|
||||||
|
|
||||||
// Dumps a map of all allocated memory to the log.
|
// Dumps a map of all allocated memory to the log.
|
||||||
void DumpMap();
|
void DumpMap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue