updated VirtualQuery to include name too
This commit is contained in:
parent
9b796efabc
commit
bf16bd929e
|
@ -280,6 +280,7 @@ int MemoryManager::VirtualQuery(VAddr addr, int flags,
|
||||||
info->is_flexible.Assign(vma.type == VMAType::Flexible);
|
info->is_flexible.Assign(vma.type == VMAType::Flexible);
|
||||||
info->is_direct.Assign(vma.type == VMAType::Direct);
|
info->is_direct.Assign(vma.type == VMAType::Direct);
|
||||||
info->is_commited.Assign(vma.type != VMAType::Free);
|
info->is_commited.Assign(vma.type != VMAType::Free);
|
||||||
|
std::copy(info->name.begin(), info->name.end(), vma.name.data());
|
||||||
if (vma.type == VMAType::Direct) {
|
if (vma.type == VMAType::Direct) {
|
||||||
const auto dmem_it = FindDmemArea(vma.phys_base);
|
const auto dmem_it = FindDmemArea(vma.phys_base);
|
||||||
ASSERT(dmem_it != dmem_map.end());
|
ASSERT(dmem_it != dmem_map.end());
|
||||||
|
|
Loading…
Reference in New Issue