mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-07-02 01:01:57 +00:00
Remove unnecessary function
This commit is contained in:
@ -16,7 +16,7 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
|||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
|
|
||||||
set(WDK_WINVER "0x0603" CACHE STRING "Default WINVER for WDK targets")
|
#set(WDK_WINVER "0x0603" CACHE STRING "Default WINVER for WDK targets")
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded$<$<CONFIG:Debug>:Debug>)
|
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded$<$<CONFIG:Debug>:Debug>)
|
||||||
|
@ -104,12 +104,4 @@ namespace memory
|
|||||||
ExFreePool(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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -23,8 +23,6 @@ namespace memory
|
|||||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||||
void free_non_paged_memory(void* memory);
|
void free_non_paged_memory(void* memory);
|
||||||
|
|
||||||
void copy_physical_data(uint64_t address, void* destination, size_t length);
|
|
||||||
|
|
||||||
template <typename T, typename... Args>
|
template <typename T, typename... Args>
|
||||||
T* allocate_non_paged_object(Args ... args)
|
T* allocate_non_paged_object(Args ... args)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user