| 334 | |
| 335 | _IRQL_requires_max_(DISPATCH_LEVEL) |
| 336 | PVOID AllocPhysicalMemorySpecifyCache( |
| 337 | PVOID64 LowestAcceptableAddress, |
| 338 | PVOID64 HighestAcceptableAddress, |
| 339 | PVOID64 BoundaryAddressMultiple, |
| 340 | SIZE_T Size, |
| 341 | MEMORY_CACHING_TYPE CachingType |
| 342 | ) { |
| 343 | return MmAllocateContiguousMemorySpecifyCache( |
| 344 | Size, |
| 345 | *reinterpret_cast<PHYSICAL_ADDRESS*>(&LowestAcceptableAddress), |
| 346 | *reinterpret_cast<PHYSICAL_ADDRESS*>(&HighestAcceptableAddress), |
| 347 | *reinterpret_cast<PHYSICAL_ADDRESS*>(&BoundaryAddressMultiple), |
| 348 | CachingType |
| 349 | ); |
| 350 | } |
| 351 | |
| 352 | _IRQL_requires_max_(DISPATCH_LEVEL) |
| 353 | VOID FreePhysicalMemory(PVOID BaseVirtualAddress) { |
no outgoing calls
no test coverage detected