mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-06-03 18:07:42 +00:00
More tests
This commit is contained in:
parent
42c7f649f9
commit
970c9571b2
@ -40,8 +40,10 @@ namespace
|
|||||||
const auto aligned_address = address & (PAGE_SIZE - 1);
|
const auto aligned_address = address & (PAGE_SIZE - 1);
|
||||||
const auto offset = address - aligned_address;
|
const auto offset = address - aligned_address;
|
||||||
|
|
||||||
uint8_t buffer[PAGE_SIZE * 2]{0};
|
debug_log("Original: %s\n", request->target_address);
|
||||||
memory::query_process_physical_page(request->process_id, reinterpret_cast<void*>(address), buffer);
|
|
||||||
|
static uint8_t buffer[PAGE_SIZE * 2]{0};
|
||||||
|
memory::query_process_physical_page(request->process_id, reinterpret_cast<void*>(aligned_address), buffer);
|
||||||
|
|
||||||
debug_log("Data: %s\n", buffer + offset);
|
debug_log("Data: %s\n", buffer + offset);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user