1
0
mirror of https://github.com/momo5502/hypervisor.git synced 2025-07-05 10:41:50 +00:00

Remove unnecessary function

This commit is contained in:
momo5502
2022-04-21 20:51:32 +02:00
parent ae8714d728
commit 44b142f266
3 changed files with 1 additions and 11 deletions

View File

@ -104,12 +104,4 @@ namespace memory
ExFreePool(memory);
}
}
void copy_physical_data(const uint64_t address, void* destination, const size_t length)
{
size_t result{};
MM_COPY_ADDRESS copy_address{};
copy_address.PhysicalAddress.QuadPart = static_cast<int64_t>(address);
MmCopyMemory(destination, copy_address, length, MM_COPY_MEMORY_PHYSICAL, &result);
}
}